mariavhrh commited on
Commit
0fe1c3a
1 Parent(s): 478319e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -163,8 +163,6 @@ if query !="none":#line:86:if query!="salir":
163
  all_zeros =not np .any (indexmax )#line:220:all_zeros = not np.any(indexmax)
164
  #st .text (count_words )#line:222:st.text(count_words)
165
 
166
- df = xlrd.open_workbook('preguntas_qh_tags2.xlsx')
167
- df = df.sheet_by_index(0)
168
  if not np .all (count_words ==0 ):#line:224:if not np.all(count_words==0):
169
  for indexin in indexmax :#line:226:for indexin in indexmax:
170
 
@@ -172,7 +170,7 @@ if query !="none":#line:86:if query!="salir":
172
  #st .text (count_words [indexin ])#line:229:st.text(count_words[indexin])
173
 
174
  st .text ("Si has preguntado...\n")#line:230:st.text("Si has preguntado...\n")
175
- st .text (df.cell(int(indexin)+1,2))#line:231:st.text(df.iloc[indexin,2])
176
  st .text ("La respuesta es...\n")#line:232:st.text("La respuesta es...\n")
177
- st .text (df.cell(int(indexin)+1,3))#line:233:st.text(df.iloc[indexin,3])
178
  print ("GRACIAS!")
 
163
  all_zeros =not np .any (indexmax )#line:220:all_zeros = not np.any(indexmax)
164
  #st .text (count_words )#line:222:st.text(count_words)
165
 
 
 
166
  if not np .all (count_words ==0 ):#line:224:if not np.all(count_words==0):
167
  for indexin in indexmax :#line:226:for indexin in indexmax:
168
 
 
170
  #st .text (count_words [indexin ])#line:229:st.text(count_words[indexin])
171
 
172
  st .text ("Si has preguntado...\n")#line:230:st.text("Si has preguntado...\n")
173
+ st .text (df .iloc [indexin ,2])#line:231:st.text(df.iloc[indexin,2])
174
  st .text ("La respuesta es...\n")#line:232:st.text("La respuesta es...\n")
175
+ st .text (df .iloc [indexin ,3])#line:233:st.text(df.iloc[indexin,3])
176
  print ("GRACIAS!")