Spaces:
Sleeping
Sleeping
Evaluate
Browse files
app.py
CHANGED
@@ -241,7 +241,7 @@ with gr.Blocks() as demo:
|
|
241 |
scenario_input = gr.Textbox(label="Scenario")
|
242 |
eng_level_input = gr.Radio(["beginner", "intermediate", "advanced"], label="English Level", value="beginner")
|
243 |
|
244 |
-
gr.Markdown("## 2. Generate Topic")
|
245 |
default_generate_topics_prompt = """
|
246 |
Give me 10 topics relevant to Scenario,
|
247 |
for a paragraph. Just the topics, no explanation, use simple English language.
|
@@ -252,7 +252,7 @@ with gr.Blocks() as demo:
|
|
252 |
topic_output = gr.Textbox(label="AI Generated Topic 主題")
|
253 |
topic_input = gr.Textbox(label="Topic")
|
254 |
|
255 |
-
gr.Markdown("## 3. Generate Points")
|
256 |
default_generate_points_prompt = """
|
257 |
Please provide main points to develop in a paragraph about topic in the context of scenario,
|
258 |
use simple English language and make sure the vocabulary you use is at eng_level.
|
@@ -263,7 +263,7 @@ with gr.Blocks() as demo:
|
|
263 |
points_output = gr.Textbox(label="AI Generated Points 要點")
|
264 |
points_input = gr.Textbox(label="Points")
|
265 |
|
266 |
-
gr.Markdown("## 4. Generate Topic Sentences")
|
267 |
default_generate_topic_sentences_prompt = """
|
268 |
Please provide one appropriate topic sentence that aptly introduces the subject for the given scenario and topic.
|
269 |
Additionally, provide two topic sentences that, while related to the topic,
|
@@ -316,12 +316,12 @@ with gr.Blocks() as demo:
|
|
316 |
conclusion_sentence_output = gr.Textbox(label="AI Generated Conclusion Sentence 結論句")
|
317 |
conclusion_sentence_input = gr.Textbox(label="Conclusion Sentence")
|
318 |
|
319 |
-
gr.Markdown("## 7. Paragraph Integration and Revision")
|
320 |
generate_paragraph_button = gr.Button("Generate Paragraph")
|
321 |
paragraph_output = gr.Textbox(label="Generated Paragraph 完整段落")
|
322 |
paragraph_input = gr.Textbox(label="Paragraph")
|
323 |
|
324 |
-
gr.Markdown("## 8.
|
325 |
default_user_generate_paragraph_evaluate_prompt = """
|
326 |
Based on the final paragraph provided, evaluate the writing in terms of content, organization, grammar, and vocabulary. Provide feedback in simple and supportive language.
|
327 |
|
|
|
241 |
scenario_input = gr.Textbox(label="Scenario")
|
242 |
eng_level_input = gr.Radio(["beginner", "intermediate", "advanced"], label="English Level", value="beginner")
|
243 |
|
244 |
+
gr.Markdown("## 2. Generate Topic 主題")
|
245 |
default_generate_topics_prompt = """
|
246 |
Give me 10 topics relevant to Scenario,
|
247 |
for a paragraph. Just the topics, no explanation, use simple English language.
|
|
|
252 |
topic_output = gr.Textbox(label="AI Generated Topic 主題")
|
253 |
topic_input = gr.Textbox(label="Topic")
|
254 |
|
255 |
+
gr.Markdown("## 3. Generate Points 要點")
|
256 |
default_generate_points_prompt = """
|
257 |
Please provide main points to develop in a paragraph about topic in the context of scenario,
|
258 |
use simple English language and make sure the vocabulary you use is at eng_level.
|
|
|
263 |
points_output = gr.Textbox(label="AI Generated Points 要點")
|
264 |
points_input = gr.Textbox(label="Points")
|
265 |
|
266 |
+
gr.Markdown("## 4. Generate Topic Sentences 主題句")
|
267 |
default_generate_topic_sentences_prompt = """
|
268 |
Please provide one appropriate topic sentence that aptly introduces the subject for the given scenario and topic.
|
269 |
Additionally, provide two topic sentences that, while related to the topic,
|
|
|
316 |
conclusion_sentence_output = gr.Textbox(label="AI Generated Conclusion Sentence 結論句")
|
317 |
conclusion_sentence_input = gr.Textbox(label="Conclusion Sentence")
|
318 |
|
319 |
+
gr.Markdown("## 7. Paragraph Integration and Revision 段落確認與修訂")
|
320 |
generate_paragraph_button = gr.Button("Generate Paragraph")
|
321 |
paragraph_output = gr.Textbox(label="Generated Paragraph 完整段落")
|
322 |
paragraph_input = gr.Textbox(label="Paragraph")
|
323 |
|
324 |
+
gr.Markdown("## 8. Evaluate 分析")
|
325 |
default_user_generate_paragraph_evaluate_prompt = """
|
326 |
Based on the final paragraph provided, evaluate the writing in terms of content, organization, grammar, and vocabulary. Provide feedback in simple and supportive language.
|
327 |
|