Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -121,7 +121,7 @@ def generate(
|
|
121 |
#print(f"IN_{t}")
|
122 |
if (
|
123 |
(response.token.text in ["Human", "-----", "Question:"] and previous_token in ["\n", "-----"])
|
124 |
-
or response.token.text in ["<|endoftext|>", "<|end|>"
|
125 |
):
|
126 |
print("OUT = "+str(output))
|
127 |
return wrap_html_code(output.strip())
|
|
|
121 |
#print(f"IN_{t}")
|
122 |
if (
|
123 |
(response.token.text in ["Human", "-----", "Question:"] and previous_token in ["\n", "-----"])
|
124 |
+
or response.token.text in ["<|endoftext|>", "<|end|>"]
|
125 |
):
|
126 |
print("OUT = "+str(output))
|
127 |
return wrap_html_code(output.strip())
|