graredcr commited on
Commit
b4bc03a
·
1 Parent(s): 297abe8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -52,14 +52,18 @@ def semanticComparativeClassificationCall(api_url: str):
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
 
62
- sentenceindex = output.index(max(output))
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?")