Shredder commited on
Commit
7c39280
1 Parent(s): 9c74623

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -76,7 +76,7 @@ def quad(query,file):
76
  paragraph = f.read()
77
  questions = load_questions()
78
  questions_short = load_questions_short()
79
- if (not len(paragraph)==0) and not (len(question)==0):
80
  print('getting predictions')
81
  predictions = run_prediction([query], paragraph, 'marshmellow77/roberta-base-cuad',n_best_size=5)
82
  answer = ""
 
76
  paragraph = f.read()
77
  questions = load_questions()
78
  questions_short = load_questions_short()
79
+ if (not len(paragraph)==0) and not (len(query)==0):
80
  print('getting predictions')
81
  predictions = run_prediction([query], paragraph, 'marshmellow77/roberta-base-cuad',n_best_size=5)
82
  answer = ""