Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -108,6 +108,7 @@ def generate(
|
|
| 108 |
previous_token = ""
|
| 109 |
|
| 110 |
for response in stream:
|
|
|
|
| 111 |
if (
|
| 112 |
(response.token.text in ["Human", "-----", "Question:"]
|
| 113 |
and previous_token in ["\n", "-----"])
|
|
|
|
| 108 |
previous_token = ""
|
| 109 |
|
| 110 |
for response in stream:
|
| 111 |
+
print("Response : "+str(response))
|
| 112 |
if (
|
| 113 |
(response.token.text in ["Human", "-----", "Question:"]
|
| 114 |
and previous_token in ["\n", "-----"])
|