furquan commited on
Commit
205b3c1
1 Parent(s): bdf862b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -162,10 +162,10 @@ def sentiment_analysis(tweets,topic):
162
 
163
 
164
  with gr.Blocks() as app:
165
- topic = gr.Textbox(label="Enter a topic for tweets")
166
- with gr.Row(equal_height=False):
167
- output1 = gr.Gallery(label="Screenshot of Tweets", show_label=True, elem_id="gallery").style(grid=[3], height="200")
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])
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