alexvaroz commited on
Commit
6e703f5
1 Parent(s): 1bab94f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ my_pipeline = pipeline('question-answering', model=mdl_name, tokenizer=mdl_name)
6
 
7
 
8
  def answer_question(question,context):
9
- text = "{"+"'context': '"+context+"','question': '"+question+"'}"
10
  di = ast.literal_eval(text)
11
  response = my_pipeline(di)
12
  return response
 
6
 
7
 
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