Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -111,7 +111,7 @@ def generate(
|
|
111 |
if (
|
112 |
(response.token.text in ["Human", "-----", "Question:"]
|
113 |
and previous_token in ["\n", "-----"])
|
114 |
-
or response.token.text
|
115 |
):
|
116 |
return output.strip()
|
117 |
else:
|
|
|
111 |
if (
|
112 |
(response.token.text in ["Human", "-----", "Question:"]
|
113 |
and previous_token in ["\n", "-----"])
|
114 |
+
or response.token.text in ["<|endoftext|>", "<|end|>", "Answer:"]
|
115 |
):
|
116 |
return output.strip()
|
117 |
else:
|