furquan commited on
Commit
7c103cf
·
1 Parent(s): 2e5ea21

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -162,10 +162,10 @@ def sentiment_analysis(tweets,topic):
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="50")
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.Column():
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="50")
169
  greet_btn = gr.Button("Initiate Sentiment Analysis")
170
  greet_btn.click(collect_tweets, inputs=topic, outputs=[output1, output2])
171