shambhuDATA commited on
Commit
8797167
·
verified ·
1 Parent(s): df7e06a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1,7 +1,7 @@
1
  from transformers import AutoModelForQuestionAnswering,AutoTokenizer,pipeline
2
  import streamlit as st
3
  import ast
4
- model_name="deepset/roberta-base-squade2"
5
  pipe=pipeline('question-answering',model=model_name,tokenizer=model_name)
6
  def answer_question(question,context):
7
  text="{"+"'question': '"+question + "',''context':'"+context+"'}"
 
1
  from transformers import AutoModelForQuestionAnswering,AutoTokenizer,pipeline
2
  import streamlit as st
3
  import ast
4
+ model_name="deepset/roberta-base-squad2"
5
  pipe=pipeline('question-answering',model=model_name,tokenizer=model_name)
6
  def answer_question(question,context):
7
  text="{"+"'question': '"+question + "',''context':'"+context+"'}"