Spaces:
Runtime error
Runtime error
Commit
·
959faf3
1
Parent(s):
8485a58
Update app.py
Browse files
app.py
CHANGED
@@ -4,14 +4,14 @@ from transformers import pipeline
|
|
4 |
qa_model = pipeline(model="Evelyn18/distilbert-base-uncased-finetuned-squad")
|
5 |
contexto=st.text_area('Contexto')
|
6 |
pregunta=st.text_area('Pregunta')
|
7 |
-
|
8 |
-
porcentaje=st.text_area('Score')
|
9 |
|
10 |
# question = "Cuáles son los artículos ?"
|
11 |
# context = "En el regalmento de regimen académico los artículos que hablan de las becas son el 1 y 3"
|
12 |
|
13 |
if contexto and pregunta:
|
14 |
out=qa_model(question = pregunta, context = contexto)
|
15 |
-
respuesta.
|
|
|
16 |
|
17 |
|
|
|
4 |
qa_model = pipeline(model="Evelyn18/distilbert-base-uncased-finetuned-squad")
|
5 |
contexto=st.text_area('Contexto')
|
6 |
pregunta=st.text_area('Pregunta')
|
7 |
+
|
|
|
8 |
|
9 |
# question = "Cuáles son los artículos ?"
|
10 |
# context = "En el regalmento de regimen académico los artículos que hablan de las becas son el 1 y 3"
|
11 |
|
12 |
if contexto and pregunta:
|
13 |
out=qa_model(question = pregunta, context = contexto)
|
14 |
+
respuesta=st.text_area('Respuesta',out)
|
15 |
+
porcentaje=st.text_area('Score',out)
|
16 |
|
17 |
|