Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 = "
|
| 45 |
-
output_text = "
|
| 46 |
-
instructions = "
|
| 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)
|