jvictoria commited on
Commit
6baffb8
·
1 Parent(s): a9d8afa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -51,5 +51,8 @@ input_text = "ここに訂正してほしい英語の作文を置いてくださ
51
  output_text = "訂正と説明はここに表示されます:"
52
  instructions = f"このアプリケーションは、文法と綴りをチェックするために使用できます。作文が約200語(または1つのパラグラフ)の場合に最適に機能します。250語以下で入力してください。もし、作成した作文がそれより長い場合は、それを約200語ずつに分割して、それぞれの部分を別々に入力してください。"
53
 
54
- # Modify the Gradio interface to include the text instructions and image
55
- demo = gradio.Interface(fn=CustomChatGPT, inputs=gradio.inputs.Textbox(lines=5, label=input_text
 
 
 
 
51
  output_text = "訂正と説明はここに表示されます:"
52
  instructions = f"このアプリケーションは、文法と綴りをチェックするために使用できます。作文が約200語(または1つのパラグラフ)の場合に最適に機能します。250語以下で入力してください。もし、作成した作文がそれより長い場合は、それを約200語ずつに分割して、それぞれの部分を別々に入力してください。"
53
 
54
+ demo = gradio.Interface(fn=CustomChatGPT, inputs=gradio.inputs.Textbox(lines=5, label=input_text),
55
+ outputs=gradio.outputs.Textbox(label=output_text),
56
+ title="Teacher Jihan's Checking Assistant", description=instructions)
57
+
58
+ demo.launch(share=False, debug=True)