Spaces:
Sleeping
Sleeping
troubleshooting replies
Browse files
app.py
CHANGED
|
@@ -59,7 +59,9 @@ def respond(message, history):
|
|
| 59 |
)
|
| 60 |
|
| 61 |
for segment in responseStream:
|
|
|
|
| 62 |
token = segment.choices[0].delta.content
|
|
|
|
| 63 |
if token is not None:
|
| 64 |
response += token
|
| 65 |
yield response
|
|
|
|
| 59 |
)
|
| 60 |
|
| 61 |
for segment in responseStream:
|
| 62 |
+
print(segment)
|
| 63 |
token = segment.choices[0].delta.content
|
| 64 |
+
print(f"Token: {repr(token)}")
|
| 65 |
if token is not None:
|
| 66 |
response += token
|
| 67 |
yield response
|