Update app.py
Browse files
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(
|
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 = ""
|