Spaces:
Runtime error
Runtime error
Commit
·
3e9caff
1
Parent(s):
d8ebd16
Update app.py
Browse files
app.py
CHANGED
@@ -85,13 +85,13 @@ with gr.Blocks() as demo:
|
|
85 |
chatbot = gr.Chatbot()
|
86 |
message = gr.Textbox(placeholder=prompt)
|
87 |
state = gr.State()
|
88 |
-
submit = gr.Button("
|
89 |
submit.click(chatgpt_clone, inputs=[message, state], outputs=[chatbot, state])
|
90 |
with gr.Tab("🤗Sentiment Analysis"):
|
91 |
gr.Markdown("Perform sentiment analysis on a Chinese sentence. Enter a sentence in Chinese in the input box and click the 'proceed' button to get the sentiment analysis result.")
|
92 |
inputs = gr.Textbox(placeholder="Type a Chinese sentence here, either positive or negative in sentiment.")
|
93 |
outputs = gr.Textbox(label="Sentiment Analysis")
|
94 |
-
proceed_button = gr.Button("
|
95 |
proceed_button.click(fn=sentiment_analysis, inputs=inputs, outputs=outputs)
|
96 |
with gr.Tab("🀄Translation to Chinese"):
|
97 |
gr.Markdown("Translate an English sentence to Chinese. Enter an English sentence in the input box and click the 'Translate' button to get the translation result in Chinese.")
|
|
|
85 |
chatbot = gr.Chatbot()
|
86 |
message = gr.Textbox(placeholder=prompt)
|
87 |
state = gr.State()
|
88 |
+
submit = gr.Button("Send")
|
89 |
submit.click(chatgpt_clone, inputs=[message, state], outputs=[chatbot, state])
|
90 |
with gr.Tab("🤗Sentiment Analysis"):
|
91 |
gr.Markdown("Perform sentiment analysis on a Chinese sentence. Enter a sentence in Chinese in the input box and click the 'proceed' button to get the sentiment analysis result.")
|
92 |
inputs = gr.Textbox(placeholder="Type a Chinese sentence here, either positive or negative in sentiment.")
|
93 |
outputs = gr.Textbox(label="Sentiment Analysis")
|
94 |
+
proceed_button = gr.Button("Proceed")
|
95 |
proceed_button.click(fn=sentiment_analysis, inputs=inputs, outputs=outputs)
|
96 |
with gr.Tab("🀄Translation to Chinese"):
|
97 |
gr.Markdown("Translate an English sentence to Chinese. Enter an English sentence in the input box and click the 'Translate' button to get the translation result in Chinese.")
|