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