Spaces:
Sleeping
Sleeping
, visible=False
Browse files
app.py
CHANGED
@@ -304,7 +304,7 @@ with gr.Blocks() as demo:
|
|
304 |
for a paragraph. Just the topics, no explanation, use simple English language.
|
305 |
Make sure the vocabulary you use is at english level.
|
306 |
"""
|
307 |
-
user_generate_topics_prompt = gr.Textbox(label="Topics Prompt", value=default_generate_topics_prompt)
|
308 |
generate_topics_button = gr.Button("AI Generate Topic Sentences")
|
309 |
topic_output = gr.Textbox(label="AI Generated Topic 主題")
|
310 |
topic_input = gr.Textbox(label="Topic")
|
@@ -315,7 +315,7 @@ with gr.Blocks() as demo:
|
|
315 |
use simple English language and make sure the vocabulary you use is at eng_level.
|
316 |
No more explanation either no developing these points into a simple paragraph.
|
317 |
"""
|
318 |
-
user_generate_points_prompt = gr.Textbox(label="Points Prompt", value=default_generate_points_prompt)
|
319 |
generate_points_button = gr.Button("AI Generate Points")
|
320 |
points_output = gr.Textbox(label="AI Generated Points 要點")
|
321 |
points_input = gr.Textbox(label="Points")
|
@@ -337,7 +337,7 @@ with gr.Blocks() as demo:
|
|
337 |
"2": [ {{ "topic-sentence": "#","appropriate": "Y/N", "reason": "#中文解釋" }} ]
|
338 |
}}
|
339 |
"""
|
340 |
-
user_generate_topic_sentences_prompt = gr.Textbox(label="Topic Sentences Prompt", value=default_generate_topic_sentences_prompt)
|
341 |
generate_topic_sentences_button = gr.Button("AI Generate Topic Sentences")
|
342 |
topic_sentence_output = gr.Textbox(label="AI Generated Topic Sentences 主題句")
|
343 |
topic_sentence_input = gr.Textbox(label="Topic Sentences")
|
@@ -352,7 +352,7 @@ with gr.Blocks() as demo:
|
|
352 |
avoiding overly technical language.
|
353 |
Total word-count is around 50. no more explanation either no more extra non-relation sentences.
|
354 |
"""
|
355 |
-
user_generate_supporting_sentences_prompt = gr.Textbox(label="Supporting Sentences Prompt", value=default_generate_supporting_sentences_prompt)
|
356 |
generate_supporting_sentences_button = gr.Button("AI Generate Supporting Sentences")
|
357 |
supporting_sentences_output = gr.Textbox(label="AI Generated Supporting Sentences 支持句", show_copy_button=True)
|
358 |
supporting_sentences_input = gr.Textbox(label="Supporting Sentences")
|
@@ -368,7 +368,7 @@ with gr.Blocks() as demo:
|
|
368 |
avoiding overly technical language.
|
369 |
Total word-count is around 20.
|
370 |
"""
|
371 |
-
user_generate_conclusion_sentence_prompt = gr.Textbox(label="Conclusion Sentence Prompt", value=default_generate_conclusion_sentence_prompt)
|
372 |
generate_conclusion_sentence_button = gr.Button("AI Generate Conclusion Sentence")
|
373 |
conclusion_sentence_output = gr.Textbox(label="AI Generated Conclusion Sentence 結論句", show_copy_button=True)
|
374 |
conclusion_sentence_input = gr.Textbox(label="Conclusion Sentence")
|
@@ -426,7 +426,7 @@ with gr.Blocks() as demo:
|
|
426 |
“coherence_and_cohesion“: {coherence_and_cohesion dict}
|
427 |
}}
|
428 |
"""
|
429 |
-
user_generate_paragraph_evaluate_prompt = gr.Textbox(label="Paragraph evaluate Prompt", value=default_user_generate_paragraph_evaluate_prompt)
|
430 |
generate_paragraph_evaluate_button = gr.Button("Save and Evaluate")
|
431 |
paragraph_evaluate_output = gr.Textbox(label="Generated Paragraph evaluate 完整段落分析", show_copy_button=True)
|
432 |
|
@@ -452,7 +452,7 @@ with gr.Blocks() as demo:
|
|
452 |
"Revised Paragraph": "#revised_paragraph"
|
453 |
}
|
454 |
"""
|
455 |
-
user_correct_grammatical_spelling_errors_prompt = gr.Textbox(label="Correct Grammatical and Spelling Errors Prompt", value=default_user_correct_grammatical_spelling_errors_prompt)
|
456 |
generate_correct_grammatical_spelling_errors_button = gr.Button("Correct Grammatical and Spelling Errors")
|
457 |
correct_grammatical_spelling_errors_output = gr.Textbox(label="Correct Grammatical and Spelling Errors 修訂文法與拼字錯誤")
|
458 |
paragraph_correct_grammatical_spelling_errors_input = gr.Textbox(label="Paragraph")
|
@@ -477,7 +477,7 @@ with gr.Blocks() as demo:
|
|
477 |
"Revised Paragraph": "#revised_paragraph_v2"
|
478 |
}
|
479 |
"""
|
480 |
-
user_refine_paragraph_prompt = gr.Textbox(label="Refine Paragraph Prompt", value=default_user_refine_paragraph_prompt)
|
481 |
generate_refine_paragraph_button = gr.Button("Refine Paragraph")
|
482 |
refine_output = gr.Textbox(label="Refine Paragraph 段落改善建議", show_copy_button=True)
|
483 |
paragraph_refine_input = gr.Textbox(label="Paragraph 段落改善", show_copy_button=True)
|
|
|
304 |
for a paragraph. Just the topics, no explanation, use simple English language.
|
305 |
Make sure the vocabulary you use is at english level.
|
306 |
"""
|
307 |
+
user_generate_topics_prompt = gr.Textbox(label="Topics Prompt", value=default_generate_topics_prompt, visible=False)
|
308 |
generate_topics_button = gr.Button("AI Generate Topic Sentences")
|
309 |
topic_output = gr.Textbox(label="AI Generated Topic 主題")
|
310 |
topic_input = gr.Textbox(label="Topic")
|
|
|
315 |
use simple English language and make sure the vocabulary you use is at eng_level.
|
316 |
No more explanation either no developing these points into a simple paragraph.
|
317 |
"""
|
318 |
+
user_generate_points_prompt = gr.Textbox(label="Points Prompt", value=default_generate_points_prompt, visible=False)
|
319 |
generate_points_button = gr.Button("AI Generate Points")
|
320 |
points_output = gr.Textbox(label="AI Generated Points 要點")
|
321 |
points_input = gr.Textbox(label="Points")
|
|
|
337 |
"2": [ {{ "topic-sentence": "#","appropriate": "Y/N", "reason": "#中文解釋" }} ]
|
338 |
}}
|
339 |
"""
|
340 |
+
user_generate_topic_sentences_prompt = gr.Textbox(label="Topic Sentences Prompt", value=default_generate_topic_sentences_prompt, visible=False)
|
341 |
generate_topic_sentences_button = gr.Button("AI Generate Topic Sentences")
|
342 |
topic_sentence_output = gr.Textbox(label="AI Generated Topic Sentences 主題句")
|
343 |
topic_sentence_input = gr.Textbox(label="Topic Sentences")
|
|
|
352 |
avoiding overly technical language.
|
353 |
Total word-count is around 50. no more explanation either no more extra non-relation sentences.
|
354 |
"""
|
355 |
+
user_generate_supporting_sentences_prompt = gr.Textbox(label="Supporting Sentences Prompt", value=default_generate_supporting_sentences_prompt, visible=False)
|
356 |
generate_supporting_sentences_button = gr.Button("AI Generate Supporting Sentences")
|
357 |
supporting_sentences_output = gr.Textbox(label="AI Generated Supporting Sentences 支持句", show_copy_button=True)
|
358 |
supporting_sentences_input = gr.Textbox(label="Supporting Sentences")
|
|
|
368 |
avoiding overly technical language.
|
369 |
Total word-count is around 20.
|
370 |
"""
|
371 |
+
user_generate_conclusion_sentence_prompt = gr.Textbox(label="Conclusion Sentence Prompt", value=default_generate_conclusion_sentence_prompt, visible=False)
|
372 |
generate_conclusion_sentence_button = gr.Button("AI Generate Conclusion Sentence")
|
373 |
conclusion_sentence_output = gr.Textbox(label="AI Generated Conclusion Sentence 結論句", show_copy_button=True)
|
374 |
conclusion_sentence_input = gr.Textbox(label="Conclusion Sentence")
|
|
|
426 |
“coherence_and_cohesion“: {coherence_and_cohesion dict}
|
427 |
}}
|
428 |
"""
|
429 |
+
user_generate_paragraph_evaluate_prompt = gr.Textbox(label="Paragraph evaluate Prompt", value=default_user_generate_paragraph_evaluate_prompt, visible=False)
|
430 |
generate_paragraph_evaluate_button = gr.Button("Save and Evaluate")
|
431 |
paragraph_evaluate_output = gr.Textbox(label="Generated Paragraph evaluate 完整段落分析", show_copy_button=True)
|
432 |
|
|
|
452 |
"Revised Paragraph": "#revised_paragraph"
|
453 |
}
|
454 |
"""
|
455 |
+
user_correct_grammatical_spelling_errors_prompt = gr.Textbox(label="Correct Grammatical and Spelling Errors Prompt", value=default_user_correct_grammatical_spelling_errors_prompt, visible=False)
|
456 |
generate_correct_grammatical_spelling_errors_button = gr.Button("Correct Grammatical and Spelling Errors")
|
457 |
correct_grammatical_spelling_errors_output = gr.Textbox(label="Correct Grammatical and Spelling Errors 修訂文法與拼字錯誤")
|
458 |
paragraph_correct_grammatical_spelling_errors_input = gr.Textbox(label="Paragraph")
|
|
|
477 |
"Revised Paragraph": "#revised_paragraph_v2"
|
478 |
}
|
479 |
"""
|
480 |
+
user_refine_paragraph_prompt = gr.Textbox(label="Refine Paragraph Prompt", value=default_user_refine_paragraph_prompt, visible=False)
|
481 |
generate_refine_paragraph_button = gr.Button("Refine Paragraph")
|
482 |
refine_output = gr.Textbox(label="Refine Paragraph 段落改善建議", show_copy_button=True)
|
483 |
paragraph_refine_input = gr.Textbox(label="Paragraph 段落改善", show_copy_button=True)
|
xx.js
DELETED
The diff for this file is too large to render.
See raw diff
|
|