Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -229,6 +229,9 @@ with gr.Blocks(fill_width=True) as demo:
|
|
229 |
info="This value sets a threshold by which texts classified flood or fire are accepted, \
|
230 |
higher values makes the classifier stricter (CAUTION: A value of 1 will set all predictions as none)", interactive=True)
|
231 |
T_predict_button = gr.Button("Start Prediction")
|
|
|
|
|
|
|
232 |
|
233 |
gr.Markdown("""Select an ID cell in dataframe to view Embedded tweet""")
|
234 |
T_tweetID = gr.Textbox(visible=False)
|
|
|
229 |
info="This value sets a threshold by which texts classified flood or fire are accepted, \
|
230 |
higher values makes the classifier stricter (CAUTION: A value of 1 will set all predictions as none)", interactive=True)
|
231 |
T_predict_button = gr.Button("Start Prediction")
|
232 |
+
|
233 |
+
gr.Examples([["./samples.tsv", "tweet_content", "jayebaku/XLMRoberta-twitter-crexdata-flood-wildfire-detector", 0.95],
|
234 |
+
inputs=[T_file_input, T_text_field, T_event_model, T_threshold])
|
235 |
|
236 |
gr.Markdown("""Select an ID cell in dataframe to view Embedded tweet""")
|
237 |
T_tweetID = gr.Textbox(visible=False)
|