Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -37,8 +37,12 @@ def semanticComparativeClassification():
|
|
37 |
|
38 |
sentenceindex = output.index(max(output))
|
39 |
|
40 |
-
|
41 |
-
|
|
|
|
|
|
|
|
|
42 |
return output
|
43 |
|
44 |
|
|
|
37 |
|
38 |
sentenceindex = output.index(max(output))
|
39 |
|
40 |
+
if output[sentenceindex] < 0.5 :
|
41 |
+
st.write("No tengo respuesta para esto, ¿me lo explicas mejor o te pongo en contacto con un humano? ")
|
42 |
+
else:
|
43 |
+
st.write("Hablamos de ", str(sentences[sentenceindex]))
|
44 |
+
|
45 |
+
|
46 |
return output
|
47 |
|
48 |
|