Spaces:
Runtime error
Runtime error
wira.indra
commited on
Commit
•
2dd816c
1
Parent(s):
e332fe8
add twitter feature
Browse files
app.py
CHANGED
@@ -67,15 +67,16 @@ if __name__ == "__main__":
|
|
67 |
)
|
68 |
|
69 |
with gr.Tab("Single Input"):
|
70 |
-
with gr.
|
71 |
-
with gr.
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
|
|
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,
|