Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -124,8 +124,8 @@ if st.button('Submit'):
|
|
124 |
|
125 |
|
126 |
if st.session_state.text_input:
|
127 |
-
|
128 |
-
st.write('Predicted Location: ',
|
129 |
|
130 |
# Render map with pydeck
|
131 |
map_data = pd.DataFrame(
|
|
|
124 |
|
125 |
|
126 |
if st.session_state.text_input:
|
127 |
+
lat, lon, confidence = geolocate_text_byt5(st.session_state.text_input)
|
128 |
+
st.write('Predicted Location: (', lat, lon, '). Confidence: ', 'High' if confidence > 0.2 else 'Low')
|
129 |
|
130 |
# Render map with pydeck
|
131 |
map_data = pd.DataFrame(
|