jayebaku commited on
Commit
29933e1
·
verified ·
1 Parent(s): c050c84

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -14
app.py CHANGED
@@ -220,20 +220,22 @@ with gr.Blocks(fill_width=True) as demo:
220
  info="This value sets a threshold by which texts classified flood or fire are accepted, \
221
  higher values makes the classifier stricter (CAUTION: A value of 1 will set all predictions as none)", interactive=True)
222
  T_predict_button = gr.Button("Start Prediction")
223
- with gr.Row():
224
- with gr.Column(scale=4):
225
- T_data_filter = gr.Dropdown(visible=False)
226
- T_tweet_embed = gr.HTML("<h1>Select a Tweet ID to view Tweet</h1>", container=True, every=1.0)
227
-
228
- with gr.Column(scale=6):
229
- T_data = gr.DataFrame(headers=["Texts", "event_label", "model_score", "IDs"],
230
- wrap=True,
231
- show_fullscreen_button=True,
232
- show_copy_button=True,
233
- show_row_numbers=True,
234
- show_search="filter",
235
- max_height=1000,
236
- column_widths=["49%","17%","17%","17%"])
 
 
237
 
238
 
239
 
 
220
  info="This value sets a threshold by which texts classified flood or fire are accepted, \
221
  higher values makes the classifier stricter (CAUTION: A value of 1 will set all predictions as none)", interactive=True)
222
  T_predict_button = gr.Button("Start Prediction")
223
+
224
+ with gr.Group():
225
+ with gr.Row():
226
+ with gr.Column(scale=4):
227
+ T_data_filter = gr.Dropdown(visible=False)
228
+ T_tweet_embed = gr.HTML("<h1>Select a Tweet ID to view Tweet</h1>", container=True, every=1.0)
229
+
230
+ with gr.Column(scale=6):
231
+ T_data = gr.DataFrame(headers=["Texts", "event_label", "model_score", "IDs"],
232
+ wrap=True,
233
+ show_fullscreen_button=True,
234
+ show_copy_button=True,
235
+ show_row_numbers=True,
236
+ show_search="filter",
237
+ max_height=1000,
238
+ column_widths=["49%","17%","17%","17%"])
239
 
240
 
241