123Chr1s commited on
Commit
f54a6f9
·
verified ·
1 Parent(s): 5f0d67b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- qa_pipeline = pipeline("question-answering", model="IProject-10/xlm-roberta-base-finetuned-squad2")
 
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...")