sohailq commited on
Commit
a08dd7e
1 Parent(s): 0d5b7bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -6,8 +6,7 @@ mdl_name = "deepset/roberta-base-squad2"
6
  my_pipeline = pipeline('question-answering', model=mdl_name,
7
  tokenizer=mdl_name)
8
  def answer_question(question,context):
9
- text= "{"+"'question': '"+question+"','context':
10
- '"+context+"'}"
11
  di=ast.literal_eval(text)
12
  response = my_pipeline(di)
13
  return response
 
6
  my_pipeline = pipeline('question-answering', model=mdl_name,
7
  tokenizer=mdl_name)
8
  def answer_question(question,context):
9
+ text= "{"+"'question': '"+question+"','context':'"+context+"'}"
 
10
  di=ast.literal_eval(text)
11
  response = my_pipeline(di)
12
  return response