Spaces:
Runtime error
Runtime error
Commit
·
8f8b900
1
Parent(s):
123a2a5
Update app.py
Browse files
app.py
CHANGED
@@ -160,8 +160,9 @@ def tweets_localidad(buscar_localidad):
|
|
160 |
plt.rcParams.update({'font.size':10, 'font.weight':'bold'})
|
161 |
ax.legend()
|
162 |
# Muestra el gráfico
|
163 |
-
st.set_option('deprecation.showPyplotGlobalUse', False)
|
164 |
plt.show()
|
|
|
|
|
165 |
except AttributeError:
|
166 |
st.text("No existe ninguna localidad con ese nombre")
|
167 |
|
|
|
160 |
plt.rcParams.update({'font.size':10, 'font.weight':'bold'})
|
161 |
ax.legend()
|
162 |
# Muestra el gráfico
|
|
|
163 |
plt.show()
|
164 |
+
st.set_option('deprecation.showPyplotGlobalUse', False)
|
165 |
+
st.pyplot()
|
166 |
except AttributeError:
|
167 |
st.text("No existe ninguna localidad con ese nombre")
|
168 |
|