Spaces:
Runtime error
Runtime error
oskrmiguel
commited on
Commit
•
603d141
1
Parent(s):
e86149a
Update app.py
Browse files
app.py
CHANGED
@@ -12,8 +12,8 @@ porcentaje=st.text_area('Score')
|
|
12 |
|
13 |
if contexto and pregunta:
|
14 |
result=qa_model(question = pregunta, context = contexto)
|
15 |
-
respuesta
|
16 |
-
porcentaje
|
17 |
#st.text('Loading data...')
|
18 |
|
19 |
|
|
|
12 |
|
13 |
if contexto and pregunta:
|
14 |
result=qa_model(question = pregunta, context = contexto)
|
15 |
+
respuesta(value=result['answer'])
|
16 |
+
porcentaje(value=result['score'])
|
17 |
#st.text('Loading data...')
|
18 |
|
19 |
|