youngtsai commited on
Commit
bab4c75
·
1 Parent(s): 5226d04

{ "original": "# original_sentence1", "Correction": "#correction_1", "Explanation": "#explanation_1(in_traditional_chinese)" },

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -439,17 +439,18 @@ with gr.Blocks() as demo:
439
  I'm aiming to improve my writing.
440
  Please assist me by "Correcting Grammatical and Spelling Errors" in the provided paragraph.
441
  For every correction you make, I'd like an "Explanation" to understand the reasoning behind it.
442
- - Paragraph for Correction: [paragraph_ai_modification(split by punctuation mark)]
443
  - The sentence to remain unchanged: [sentence_to_remain_unchanged]
444
- - When explaining, use Traditional Chinese (Taiwan, 繁體中文) for clarity. But others in English.
445
- - Make sure any revised vocabulary aligns with the eng level.
 
446
  - Guidelines for Length and Complexity: Please keep explanations concise and straightforward,
447
- avoiding overly technical language.
448
  The response should strictly be in the below JSON format and nothing else:
449
  {
450
  "Corrections and Explanations": [
451
- { "original": "# original_sentence1", "Correction": "#correction_1", "Explanation": "#explanation_1_in_traditional_chinese" },
452
- { "original": "# original_sentence2", "Correction": "#correction_2", "Explanation": "#explanation_2_in_traditional_chinese" },
453
  ...
454
  ],
455
  "Revised Paragraph": "#revised_paragraph"
 
439
  I'm aiming to improve my writing.
440
  Please assist me by "Correcting Grammatical and Spelling Errors" in the provided paragraph.
441
  For every correction you make, I'd like an "Explanation" to understand the reasoning behind it.
442
+ - Paragraph for Correction: [paragraph split by punctuation mark]
443
  - The sentence to remain unchanged: [sentence_to_remain_unchanged]
444
+ - When explaining, use Traditional Chinese (Taiwan, 繁體中文) for clarity.
445
+ - But others(original, Correction, revised_paragraph) in English.
446
+ - Make sure any revised vocabulary aligns with the eng_level.
447
  - Guidelines for Length and Complexity: Please keep explanations concise and straightforward,
448
+ - Avoiding overly technical language.
449
  The response should strictly be in the below JSON format and nothing else:
450
  {
451
  "Corrections and Explanations": [
452
+ { "original": "# original_sentence1", "Correction": "#correction_1", "Explanation": "#explanation_1(in_traditional_chinese)" },
453
+ { "original": "# original_sentence2", "Correction": "#correction_2", "Explanation": "#explanation_2(in_traditional_chinese)" },
454
  ...
455
  ],
456
  "Revised Paragraph": "#revised_paragraph"