fsaglam2002 commited on
Commit
909a65f
1 Parent(s): 4ea0b70

Update app.py

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