Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -164,7 +164,7 @@ def sentiment_analysis(tweets,topic):
|
|
164 |
with gr.Blocks() as app:
|
165 |
topic = gr.Textbox(label="Enter a topic for tweets")
|
166 |
with gr.Row():
|
167 |
-
output1 = gr.Gallery(label="
|
168 |
output2 = gr.Image(label="Sentiment Analysis Result")
|
169 |
greet_btn = gr.Button("Initiate Sentiment Analysis")
|
170 |
greet_btn.click(collect_tweets, inputs=topic, outputs=[output1, output2])
|
|
|
164 |
with gr.Blocks() as app:
|
165 |
topic = gr.Textbox(label="Enter a topic for tweets")
|
166 |
with gr.Row():
|
167 |
+
output1 = gr.Gallery(label="Screenshot of Tweets", show_label=True, elem_id="gallery")
|
168 |
output2 = gr.Image(label="Sentiment Analysis Result")
|
169 |
greet_btn = gr.Button("Initiate Sentiment Analysis")
|
170 |
greet_btn.click(collect_tweets, inputs=topic, outputs=[output1, output2])
|