Spaces:
Runtime error
Runtime error
jcmachicao
commited on
Commit
•
ebffa0d
1
Parent(s):
12cef0f
Update app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,7 @@ tokenizer2 = AutoTokenizer.from_pretrained(modelo_hf2,
|
|
44 |
if boton_preg:
|
45 |
|
46 |
st.write('Procesando texto ', texto[0:50], '...')
|
47 |
-
preguntas = pipeline('question-answering', model=
|
48 |
for preg in pregs:
|
49 |
respuesta = preguntas({'question': preg, 'context': texto})
|
50 |
st.write(preg)
|
|
|
44 |
if boton_preg:
|
45 |
|
46 |
st.write('Procesando texto ', texto[0:50], '...')
|
47 |
+
preguntas = pipeline('question-answering', model=modelo2, tokenizer=tokenizer2)
|
48 |
for preg in pregs:
|
49 |
respuesta = preguntas({'question': preg, 'context': texto})
|
50 |
st.write(preg)
|