Danielrahmai1991 commited on
Commit
91d890c
·
verified ·
1 Parent(s): f6af93a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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(process_file, inputs=[input_text], outputs=output_text)
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()