Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|
119 |
-
text += 'Respuesta: ' +temp.
|
120 |
-
text += 'Contexto: '+temp.
|
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.
|
198 |
-
text += 'Respuesta: ' +temp.
|
199 |
-
text += 'Contexto: '+temp.
|
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 |
|