paascorb commited on
Commit
9332c4d
·
1 Parent(s): 7d30715

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -115,9 +115,9 @@ def predict(query,data):
115
  for i in range(k):
116
  temp = [df.iloc[n] for n in range(k)][i]
117
  text = ''
118
- text += 'Probabilidades: '+ temp.Probabilities + '\n\n'
119
- text += 'Respuesta: ' +temp.Answer + '\n\n'
120
- text += 'Contexto: '+temp.Passage + '\n\n'
121
  list_outputs.append(text)
122
  return list_outputs
123
  except Exception as e:
@@ -194,9 +194,9 @@ def predict(query,data):
194
  for i in range(k):
195
  text = ''
196
  temp = [df.iloc[n] for n in range(k)][i]
197
- text += 'Probabilidades: '+ temp.Probabilities + '\n\n'
198
- text += 'Respuesta: ' +temp.Answer + '\n\n'
199
- text += 'Contexto: '+temp.Passage + '\n\n'
200
 
201
  list_outputs.append(text)
202
 
 
115
  for i in range(k):
116
  temp = [df.iloc[n] for n in range(k)][i]
117
  text = ''
118
+ text += 'Probabilidades: '+ temp.Probabilidades + '\n\n'
119
+ text += 'Respuesta: ' +temp.Respuesta + '\n\n'
120
+ text += 'Contexto: '+temp.Contexto + '\n\n'
121
  list_outputs.append(text)
122
  return list_outputs
123
  except Exception as e:
 
194
  for i in range(k):
195
  text = ''
196
  temp = [df.iloc[n] for n in range(k)][i]
197
+ text += 'Probabilidades: '+ temp.Probabilidades + '\n\n'
198
+ text += 'Respuesta: ' +temp.Respuesta + '\n\n'
199
+ text += 'Contexto: '+temp.Contexto + '\n\n'
200
 
201
  list_outputs.append(text)
202