Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,8 @@ import streamlit as st
|
|
4 |
st.title("Question Answering with XLM-RoBERTa")
|
5 |
|
6 |
# Load the question-answering pipeline with the new model
|
7 |
-
|
|
|
8 |
|
9 |
context = st.text_area("Context", "Provide the context here...")
|
10 |
question = st.text_input("Question", "Ask your question here...")
|
|
|
4 |
st.title("Question Answering with XLM-RoBERTa")
|
5 |
|
6 |
# Load the question-answering pipeline with the new model
|
7 |
+
with st.spinner('Loading model...'):
|
8 |
+
qa_pipeline = pipeline("question-answering", model="IProject-10/xlm-roberta-base-finetuned-squad2")
|
9 |
|
10 |
context = st.text_area("Context", "Provide the context here...")
|
11 |
question = st.text_input("Question", "Ask your question here...")
|