jvictoria commited on
Commit
3302bbd
·
1 Parent(s): 165f9e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -41,9 +41,9 @@ def CustomChatGPT(user_input):
41
  return ChatGPT_reply
42
 
43
  # Add text instructions on top of the input and output boxes
44
- input_text = "ここに訂正してほしい英語の作文を置いてください。そして「Submit」を押してください:"
45
- output_text = "訂正と説明はここに表示されます:"
46
- instructions = "このアプリケーションは、文法と綴りをチェックするために使用できます。アプリは、1つのパラグラフずつ入力する場合に最適に機能します。例えば、3つのパラグラフから成る作文をチェックしたい場合は、それぞれのパラグラフを「Submit」してください。つまり、プログラムを3回実行し、各パラグラフごとに1回ずつ実行してください。"
47
 
48
  # Modify the Gradio interface to include the text instructions and image
49
  demo = gradio.Interface(fn=CustomChatGPT, inputs=gradio.inputs.Textbox(lines=5, label=input_text), outputs=gradio.outputs.Textbox(label=output_text), title="Teacher Jihan's Grammar Checker", description=instructions)
 
41
  return ChatGPT_reply
42
 
43
  # Add text instructions on top of the input and output boxes
44
+ input_text = "Write the text you want to check here."
45
+ output_text = "This is the corrected version"
46
+ instructions = "This app will correct and explain grammar mistakes."
47
 
48
  # Modify the Gradio interface to include the text instructions and image
49
  demo = gradio.Interface(fn=CustomChatGPT, inputs=gradio.inputs.Textbox(lines=5, label=input_text), outputs=gradio.outputs.Textbox(label=output_text), title="Teacher Jihan's Grammar Checker", description=instructions)