Joshua1808 commited on
Commit
20e5edc
·
1 Parent(s): 600a3dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -193,15 +193,15 @@ def tweets_localidad(buscar_localidad):
193
  st.set_option('deprecation.showPyplotGlobalUse', False)
194
  st.pyplot()
195
 
196
- plt.bar(resultado.index, resultado, color=colores)
197
- ax.set_title("Porcentajes por Categorias", fontsize=5, fontweight="bold")
198
- plt.rcParams.update({'font.size':4, 'font.weight':'bold'})
199
- ax.set_xlabel("Categoría")
200
- ax.set_ylabel("Probabilidad")
201
  # Muestra el gráfico
202
- plt.show()
203
- st.set_option('deprecation.showPyplotGlobalUse', False)
204
- st.pyplot()
205
 
206
  except AttributeError as e:
207
  muestra=st.text("No existe ninguna localidad con ese nombre")
@@ -210,7 +210,7 @@ def tweets_localidad(buscar_localidad):
210
  return tabla
211
 
212
  def analizar_frase(frase):
213
-
214
  if frase == "":
215
  tabla = st.text("Ingrese una frase")
216
  #st.text("Ingrese una frase")
 
193
  st.set_option('deprecation.showPyplotGlobalUse', False)
194
  st.pyplot()
195
 
196
+ #plt.bar(resultado.index, resultado, color=colores)
197
+ #ax.set_title("Porcentajes por Categorias", fontsize=5, fontweight="bold")
198
+ #plt.rcParams.update({'font.size':4, 'font.weight':'bold'})
199
+ #ax.set_xlabel("Categoría")
200
+ #ax.set_ylabel("Probabilidad")
201
  # Muestra el gráfico
202
+ #plt.show()
203
+ #st.set_option('deprecation.showPyplotGlobalUse', False)
204
+ #st.pyplot()
205
 
206
  except AttributeError as e:
207
  muestra=st.text("No existe ninguna localidad con ese nombre")
 
210
  return tabla
211
 
212
  def analizar_frase(frase):
213
+ language = detect(text)
214
  if frase == "":
215
  tabla = st.text("Ingrese una frase")
216
  #st.text("Ingrese una frase")