furquan commited on
Commit
f21d7c9
1 Parent(s): 0dfdc09

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.Textbox(label="Output Box"), 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
 
 
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