Spaces:
Runtime error
Runtime error
Add some beauty
Browse files
app.py
CHANGED
@@ -77,6 +77,11 @@ def predict(text):
|
|
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)
|
|
|
77 |
with gr.Blocks() as demo:
|
78 |
|
79 |
gr.Markdown("# **<p align='center'>Twitter geocoding with 🤗 Transformers</p>**")
|
80 |
+
gr.Markdown("# **<div align='center'>Pipeline consists of:</div>**")
|
81 |
+
gr.Markdown("# **<div align='center'>1) Relevancy scoring model</div>**")
|
82 |
+
gr.Markdown("# **<div align='center'>2) Coordinate predicting model</div>**")
|
83 |
+
gr.Markdown("# **<div align='center'>3) Nominatim API for reverse geocoding lat/lon</div>**")
|
84 |
+
|
85 |
inputs = gr.Textbox(placeholder="Enter the tweet")
|
86 |
outputs = [gr.Dataframe(label="Geocoded data")]
|
87 |
inputs.submit(predict, inputs=inputs, outputs=outputs)
|