Spaces:
Runtime error
Runtime error
wira.indra
commited on
Commit
·
e332fe8
1
Parent(s):
1df8439
add twitter feature
Browse files
app.py
CHANGED
|
@@ -69,11 +69,11 @@ if __name__ == "__main__":
|
|
| 69 |
with gr.Tab("Single Input"):
|
| 70 |
with gr.Row():
|
| 71 |
with gr.Column():
|
| 72 |
-
input_text = gr.
|
| 73 |
analyze_button = gr.Button(label="Analyze")
|
| 74 |
with gr.Column():
|
| 75 |
-
sent_output = gr.
|
| 76 |
-
ner_output = gr.
|
| 77 |
|
| 78 |
analyze_button.click(sentiment_analysis, input_text, [sent_output, ner_output])
|
| 79 |
|
|
|
|
| 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 |
|