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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ 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", tokenizer="IProject-10/xlm-roberta-base-finetuned-squad2", framework='pt', device=0)
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
+ 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...")