Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -52,14 +52,18 @@ def semanticComparativeClassificationCall(api_url: str):
|
|
52 |
},
|
53 |
})
|
54 |
|
55 |
-
|
56 |
|
57 |
index=0
|
58 |
for i in output:
|
59 |
st.write(i," - ", sentences[index])
|
60 |
index = index + 1
|
|
|
|
|
|
|
|
|
61 |
|
62 |
-
|
63 |
|
64 |
if output[sentenceindex] < 0.3 :
|
65 |
st.write("No tengo respuesta para esto, ¿me lo explicas mejor o te pongo en contacto con un humano?")
|
|
|
52 |
},
|
53 |
})
|
54 |
|
55 |
+
st.write(output)
|
56 |
|
57 |
index=0
|
58 |
for i in output:
|
59 |
st.write(i," - ", sentences[index])
|
60 |
index = index + 1
|
61 |
+
maxim = max(output)
|
62 |
+
st.write('MAX:', str(maxim))
|
63 |
+
|
64 |
+
sentenceindex = output.index(maxim)
|
65 |
|
66 |
+
st.write('Sentence index :', sentenceindex)
|
67 |
|
68 |
if output[sentenceindex] < 0.3 :
|
69 |
st.write("No tengo respuesta para esto, ¿me lo explicas mejor o te pongo en contacto con un humano?")
|