graredcr commited on
Commit
475b6f7
·
1 Parent(s): 5772ef9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -10
app.py CHANGED
@@ -30,16 +30,9 @@ def semanticComparativeClassification():
30
  "sentences": sentences
31
  },
32
  })
33
- index = 0
34
- sentenceindex = -1
35
- max = 0
36
- for i in output:
37
- st.write(sentences[index]," - ",i)
38
- if i<max:
39
- sentenceindex = index
40
- index = index + 1
41
-
42
- sentenceindex = i.index(max(i))
43
 
44
  st.write("Hablamos de ", str(sentenceindex))
45
 
 
30
  "sentences": sentences
31
  },
32
  })
33
+
34
+
35
+ sentenceindex = output.index(max(output))
 
 
 
 
 
 
 
36
 
37
  st.write("Hablamos de ", str(sentenceindex))
38