Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -71,7 +71,7 @@ def generate_answer(question, context, ground_truth, do_pretrained, do_natural):
|
|
71 |
generated_answer = tokenizer.decode(generated_ids[0], skip_special_tokens=True)
|
72 |
|
73 |
# Paraphrase answer
|
74 |
-
|
75 |
if do_natural:
|
76 |
paraphrased_answer = paraphrase_answer(question, generated_answer)
|
77 |
|
|
|
71 |
generated_answer = tokenizer.decode(generated_ids[0], skip_special_tokens=True)
|
72 |
|
73 |
# Paraphrase answer
|
74 |
+
paraphrased_answer = ""
|
75 |
if do_natural:
|
76 |
paraphrased_answer = paraphrase_answer(question, generated_answer)
|
77 |
|