Update app.py
Browse files
app.py
CHANGED
|
@@ -10,12 +10,12 @@ Original file is located at
|
|
| 10 |
import streamlit as st
|
| 11 |
from transformers import pipeline
|
| 12 |
|
| 13 |
-
classifier = pipeline("
|
| 14 |
def main():
|
| 15 |
-
st.title("
|
| 16 |
|
| 17 |
with st.form("text_field"):
|
| 18 |
-
text = st.text_area('
|
| 19 |
# clicked==True only when the button is clicked
|
| 20 |
clicked = st.form_submit_button("Submit")
|
| 21 |
if clicked:
|
|
|
|
| 10 |
import streamlit as st
|
| 11 |
from transformers import pipeline
|
| 12 |
|
| 13 |
+
classifier = pipeline("question-answering", model="roberta-base for QA")
|
| 14 |
def main():
|
| 15 |
+
st.title("Question & Answering")
|
| 16 |
|
| 17 |
with st.form("text_field"):
|
| 18 |
+
text = st.text_area('Enter question:')
|
| 19 |
# clicked==True only when the button is clicked
|
| 20 |
clicked = st.form_submit_button("Submit")
|
| 21 |
if clicked:
|