st to gr
Browse files
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
import
|
2 |
import re
|
3 |
from transformers import pipeline
|
4 |
|
@@ -91,7 +91,7 @@ def getQuestion(question):
|
|
91 |
|
92 |
return {max_value_qr:pregunta}
|
93 |
|
94 |
-
pregunta =
|
95 |
if pregunta:
|
96 |
contexto = ""
|
97 |
qst = getQuestion(pregunta)
|
@@ -131,7 +131,7 @@ if pregunta:
|
|
131 |
print(max_value)
|
132 |
indice = listaScore.index(max_value)
|
133 |
print(indice)
|
134 |
-
respuesta =
|
135 |
-
porcentaje =
|
136 |
else:
|
137 |
print('No hay pregunta seleccionada')
|
|
|
1 |
+
import streamlit as st
|
2 |
import re
|
3 |
from transformers import pipeline
|
4 |
|
|
|
91 |
|
92 |
return {max_value_qr:pregunta}
|
93 |
|
94 |
+
pregunta = st.text_area('Pregunta')
|
95 |
if pregunta:
|
96 |
contexto = ""
|
97 |
qst = getQuestion(pregunta)
|
|
|
131 |
print(max_value)
|
132 |
indice = listaScore.index(max_value)
|
133 |
print(indice)
|
134 |
+
respuesta = st.text_area('Respuesta', listaAnswer[indice])
|
135 |
+
porcentaje = st.text_area('Score', max_value )
|
136 |
else:
|
137 |
print('No hay pregunta seleccionada')
|