Spaces:
Sleeping
Sleeping
, show_copy_button=True
Browse files
app.py
CHANGED
@@ -358,7 +358,7 @@ with gr.Blocks() as demo:
|
|
358 |
"""
|
359 |
user_generate_supporting_sentences_prompt = gr.Textbox(label="Supporting Sentences Prompt", value=default_generate_supporting_sentences_prompt)
|
360 |
generate_supporting_sentences_button = gr.Button("AI Generate Supporting Sentences")
|
361 |
-
supporting_sentences_output = gr.Textbox(label="AI Generated Supporting Sentences 支持句")
|
362 |
supporting_sentences_input = gr.Textbox(label="Supporting Sentences")
|
363 |
|
364 |
gr.Markdown("## 6. Conclusion sentence 結論句")
|
@@ -379,8 +379,8 @@ with gr.Blocks() as demo:
|
|
379 |
|
380 |
gr.Markdown("## 7. Paragraph Integration and Revision 段落確認與修訂")
|
381 |
generate_paragraph_button = gr.Button("Generate Paragraph")
|
382 |
-
paragraph_output = gr.Textbox(label="Generated Paragraph 完整段落")
|
383 |
-
paragraph_input = gr.Textbox(label="Paragraph"
|
384 |
|
385 |
gr.Markdown("## 8. Evaluate 分析")
|
386 |
default_user_generate_paragraph_evaluate_prompt = """
|
@@ -432,7 +432,7 @@ with gr.Blocks() as demo:
|
|
432 |
"""
|
433 |
user_generate_paragraph_evaluate_prompt = gr.Textbox(label="Paragraph evaluate Prompt", value=default_user_generate_paragraph_evaluate_prompt)
|
434 |
generate_paragraph_evaluate_button = gr.Button("Save and Evaluate")
|
435 |
-
paragraph_evaluate_output = gr.Textbox(label="Generated Paragraph evaluate 完整段落分析")
|
436 |
|
437 |
gr.Markdown("## 9. Correct Grammatical and Spelling Errors 修訂文法與拼字錯誤")
|
438 |
default_user_correct_grammatical_spelling_errors_prompt = """
|
@@ -458,7 +458,7 @@ with gr.Blocks() as demo:
|
|
458 |
user_correct_grammatical_spelling_errors_prompt = gr.Textbox(label="Correct Grammatical and Spelling Errors Prompt", value=default_user_correct_grammatical_spelling_errors_prompt)
|
459 |
generate_correct_grammatical_spelling_errors_button = gr.Button("Correct Grammatical and Spelling Errors")
|
460 |
correct_grammatical_spelling_errors_output = gr.Textbox(label="Correct Grammatical and Spelling Errors 修訂文法與拼字錯誤")
|
461 |
-
paragraph_correct_grammatical_spelling_errors_input = gr.Textbox(label="Paragraph"
|
462 |
|
463 |
gr.Markdown("## 10. Refine Paragraph 段落改善建議")
|
464 |
default_user_refine_paragraph_prompt = """
|
@@ -481,8 +481,8 @@ with gr.Blocks() as demo:
|
|
481 |
"""
|
482 |
user_refine_paragraph_prompt = gr.Textbox(label="Refine Paragraph Prompt", value=default_user_refine_paragraph_prompt)
|
483 |
generate_refine_paragraph_button = gr.Button("Refine Paragraph")
|
484 |
-
refine_output = gr.Textbox(label="Refine Paragraph 段落改善建議")
|
485 |
-
paragraph_refine_input = gr.Textbox(label="Paragraph 段落改善",
|
486 |
|
487 |
gr.Markdown("## 11. Save and Share")
|
488 |
paragraph_save_button = gr.Button("Save and Share")
|
|
|
358 |
"""
|
359 |
user_generate_supporting_sentences_prompt = gr.Textbox(label="Supporting Sentences Prompt", value=default_generate_supporting_sentences_prompt)
|
360 |
generate_supporting_sentences_button = gr.Button("AI Generate Supporting Sentences")
|
361 |
+
supporting_sentences_output = gr.Textbox(label="AI Generated Supporting Sentences 支持句", show_copy_button=True)
|
362 |
supporting_sentences_input = gr.Textbox(label="Supporting Sentences")
|
363 |
|
364 |
gr.Markdown("## 6. Conclusion sentence 結論句")
|
|
|
379 |
|
380 |
gr.Markdown("## 7. Paragraph Integration and Revision 段落確認與修訂")
|
381 |
generate_paragraph_button = gr.Button("Generate Paragraph")
|
382 |
+
paragraph_output = gr.Textbox(label="Generated Paragraph 完整段落", show_copy_button=True)
|
383 |
+
paragraph_input = gr.Textbox(label="Paragraph")
|
384 |
|
385 |
gr.Markdown("## 8. Evaluate 分析")
|
386 |
default_user_generate_paragraph_evaluate_prompt = """
|
|
|
432 |
"""
|
433 |
user_generate_paragraph_evaluate_prompt = gr.Textbox(label="Paragraph evaluate Prompt", value=default_user_generate_paragraph_evaluate_prompt)
|
434 |
generate_paragraph_evaluate_button = gr.Button("Save and Evaluate")
|
435 |
+
paragraph_evaluate_output = gr.Textbox(label="Generated Paragraph evaluate 完整段落分析", show_copy_button=True)
|
436 |
|
437 |
gr.Markdown("## 9. Correct Grammatical and Spelling Errors 修訂文法與拼字錯誤")
|
438 |
default_user_correct_grammatical_spelling_errors_prompt = """
|
|
|
458 |
user_correct_grammatical_spelling_errors_prompt = gr.Textbox(label="Correct Grammatical and Spelling Errors Prompt", value=default_user_correct_grammatical_spelling_errors_prompt)
|
459 |
generate_correct_grammatical_spelling_errors_button = gr.Button("Correct Grammatical and Spelling Errors")
|
460 |
correct_grammatical_spelling_errors_output = gr.Textbox(label="Correct Grammatical and Spelling Errors 修訂文法與拼字錯誤")
|
461 |
+
paragraph_correct_grammatical_spelling_errors_input = gr.Textbox(label="Paragraph")
|
462 |
|
463 |
gr.Markdown("## 10. Refine Paragraph 段落改善建議")
|
464 |
default_user_refine_paragraph_prompt = """
|
|
|
481 |
"""
|
482 |
user_refine_paragraph_prompt = gr.Textbox(label="Refine Paragraph Prompt", value=default_user_refine_paragraph_prompt)
|
483 |
generate_refine_paragraph_button = gr.Button("Refine Paragraph")
|
484 |
+
refine_output = gr.Textbox(label="Refine Paragraph 段落改善建議", show_copy_button=True)
|
485 |
+
paragraph_refine_input = gr.Textbox(label="Paragraph 段落改善", show_copy_button=True)
|
486 |
|
487 |
gr.Markdown("## 11. Save and Share")
|
488 |
paragraph_save_button = gr.Button("Save and Share")
|