Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ for row in random_test_samples:
|
|
32 |
def predict(context = "", answer = ""):
|
33 |
formatted = context.replace('\n', ' ') + "\n"
|
34 |
|
35 |
-
if answer
|
36 |
formatted = context.replace('\n', ' ') + "\n" + answer.replace('\n', ' ') + "\n"
|
37 |
|
38 |
|
|
|
32 |
def predict(context = "", answer = ""):
|
33 |
formatted = context.replace('\n', ' ') + "\n"
|
34 |
|
35 |
+
if answer != "":
|
36 |
formatted = context.replace('\n', ' ') + "\n" + answer.replace('\n', ' ') + "\n"
|
37 |
|
38 |
|