Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,9 @@ def semanticComparativeClassification():
|
|
39 |
sentenceindex = index
|
40 |
index = index + 1
|
41 |
|
42 |
-
|
|
|
|
|
43 |
|
44 |
return output
|
45 |
|
@@ -50,5 +52,5 @@ def semanticComparativeClassification():
|
|
50 |
|
51 |
|
52 |
st.title('Reconocimiento semántico')
|
53 |
-
title = st.text_input('Pregunta', '
|
54 |
st.write('La pregunta es ', st.session_state.mytext)
|
|
|
39 |
sentenceindex = index
|
40 |
index = index + 1
|
41 |
|
42 |
+
sentenceindex = i.index(max(i))
|
43 |
+
|
44 |
+
st.write("Hablamos de ", sentenceindex)
|
45 |
|
46 |
return output
|
47 |
|
|
|
52 |
|
53 |
|
54 |
st.title('Reconocimiento semántico')
|
55 |
+
title = st.text_input('Pregunta', 'Haz una pregunta', on_change=semanticComparativeClassification,key='mytext')
|
56 |
st.write('La pregunta es ', st.session_state.mytext)
|