Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -163,7 +163,7 @@ def sentiment_analysis(tweets,topic):
|
|
163 |
|
164 |
with gr.Blocks() as app:
|
165 |
topic = gr.Textbox(label="Enter a topic for tweets")
|
166 |
-
output = [gr.
|
167 |
greet_btn = gr.Button("Initiate Sentiment Analysis")
|
168 |
greet_btn.click(fn=collect_tweets, inputs=topic, outputs=output)
|
169 |
|
|
|
163 |
|
164 |
with gr.Blocks() as app:
|
165 |
topic = gr.Textbox(label="Enter a topic for tweets")
|
166 |
+
output = [gr.Gallery(label="Generated images", show_label=False, elem_id="gallery").style(grid=[2], height="50"), gr.Image(label="Sentiment Analysis Result")]
|
167 |
greet_btn = gr.Button("Initiate Sentiment Analysis")
|
168 |
greet_btn.click(fn=collect_tweets, inputs=topic, outputs=output)
|
169 |
|