Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
|
|
|
|
|
|
|
| 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 |
|