wira.indra commited on
Commit
2dd816c
1 Parent(s): e332fe8

add twitter feature

Browse files
Files changed (1) hide show
  1. app.py +10 -9
app.py CHANGED
@@ -67,15 +67,16 @@ if __name__ == "__main__":
67
  )
68
 
69
  with gr.Tab("Single Input"):
70
- with gr.Row():
71
- with gr.Column():
72
- input_text = gr.Textbox(label="Input Text")
73
- analyze_button = gr.Button(label="Analyze")
74
- with gr.Column():
75
- sent_output = gr.Textbox(label="Sentiment Analysis")
76
- ner_output = gr.Textbox(label="Named Entity Recognition")
77
-
78
- analyze_button.click(sentiment_analysis, input_text, [sent_output, ner_output])
 
79
 
80
  # sentiment_demo = gr.Interface(
81
  # fn=sentiment_analysis,
 
67
  )
68
 
69
  with gr.Tab("Single Input"):
70
+ with gr.Blocks():
71
+ with gr.Row():
72
+ with gr.Column():
73
+ input_text = gr.Textbox(label="Input Text")
74
+ analyze_button = gr.Button(label="Analyze")
75
+ with gr.Column():
76
+ sent_output = gr.Textbox(label="Sentiment Analysis")
77
+ ner_output = gr.Textbox(label="Named Entity Recognition")
78
+
79
+ analyze_button.click(sentiment_analysis, input_text, [sent_output, ner_output])
80
 
81
  # sentiment_demo = gr.Interface(
82
  # fn=sentiment_analysis,