Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,10 +20,11 @@ def analyze_sentiment(text):
|
|
| 20 |
with gr.Blocks() as demo:
|
| 21 |
gr.Markdown("Enter Persian text to get its sentiment analyzed")
|
| 22 |
input_text = gr.Textbox(label="Status")
|
| 23 |
-
submit_button = gr.Button("Upload and Process")
|
| 24 |
output_text = gr.Textbox(label="Status")
|
|
|
|
|
|
|
| 25 |
|
| 26 |
-
submit_button.click(
|
| 27 |
|
| 28 |
# Launch the app
|
| 29 |
demo.launch()
|
|
|
|
| 20 |
with gr.Blocks() as demo:
|
| 21 |
gr.Markdown("Enter Persian text to get its sentiment analyzed")
|
| 22 |
input_text = gr.Textbox(label="Status")
|
|
|
|
| 23 |
output_text = gr.Textbox(label="Status")
|
| 24 |
+
submit_button = gr.Button("Upload and Process")
|
| 25 |
+
|
| 26 |
|
| 27 |
+
submit_button.click(analyze_sentiment, inputs=[input_text], outputs=output_text)
|
| 28 |
|
| 29 |
# Launch the app
|
| 30 |
demo.launch()
|