otraprueba / app.py
oskrmiguel's picture
Update app.py
3f568d7
raw
history blame
445 Bytes
import streamlit as st
from transformers import pipeline
qa_model = pipeline(model="Evelyn18/distilbert-base-uncased-finetuned-squad")
contexto=st.text_area('Contexto')
pregunta=st.text_area('Pregunta')
# question = "Cuáles son los artículos ?"
# context = "En el regalmento de regimen académico los artículos que hablan de las becas son el 1 y 3"
if contexto and pregunta:
out=qa_model(question = pregunta, context = contexto)
st.out