azamat commited on
Commit
e804a95
1 Parent(s): 7a321ee

Add some beauty

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- inp = inp = gr.Textbox(placeholder="Enter the tweet",)
81
- inp.submit(predict, inp, "dataframe")
 
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()