OjciecTadeusz
commited on
Update main.py
Browse files
main.py
CHANGED
@@ -54,7 +54,7 @@ def generate(item: Item):
|
|
54 |
output = ""
|
55 |
|
56 |
for response in stream:
|
57 |
-
Check if response has the attribute 'token'
|
58 |
|
59 |
if hasattr(response, 'tokens'):
|
60 |
output += response.token.text
|
|
|
54 |
output = ""
|
55 |
|
56 |
for response in stream:
|
57 |
+
# Check if response has the attribute 'token'
|
58 |
|
59 |
if hasattr(response, 'tokens'):
|
60 |
output += response.token.text
|