graredcr commited on
Commit
2be1e6d
·
1 Parent(s): 37209a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -37,8 +37,12 @@ def semanticComparativeClassification():
37
 
38
  sentenceindex = output.index(max(output))
39
 
40
- st.write("Hablamos de ", str(sentences[sentenceindex]))
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