Spaces:
Runtime error
Runtime error
Add some beauty
Browse files
app.py
CHANGED
@@ -77,8 +77,9 @@ def predict(text):
|
|
77 |
with gr.Blocks() as demo:
|
78 |
|
79 |
gr.Markdown("# **<p align='center'>Twitter geocoding with 🤗 Transformers</p>**")
|
80 |
-
|
81 |
-
|
|
|
82 |
|
83 |
if __name__ == "__main__":
|
84 |
demo.launch()
|
|
|
77 |
with gr.Blocks() as demo:
|
78 |
|
79 |
gr.Markdown("# **<p align='center'>Twitter geocoding with 🤗 Transformers</p>**")
|
80 |
+
inputs = gr.Textbox(placeholder="Enter the tweet")
|
81 |
+
outputs = [gr.Dataframe(label="Geocoded data")]
|
82 |
+
inputs.submit(predict, inputs=inputs, outputs=outputs)
|
83 |
|
84 |
if __name__ == "__main__":
|
85 |
demo.launch()
|