Spaces:
Sleeping
Sleeping
hi
Browse files
app.py
CHANGED
|
@@ -24,8 +24,8 @@ If the user gets too personal, remind them that YOU ARE NOT A PROFESSIONAL; THEY
|
|
| 24 |
)
|
| 25 |
return respond.choices[0].message.content.strip()
|
| 26 |
respond= ""
|
| 27 |
-
|
| 28 |
-
|
| 29 |
if respond:
|
| 30 |
respond+=token
|
| 31 |
yield repond
|
|
|
|
| 24 |
)
|
| 25 |
return respond.choices[0].message.content.strip()
|
| 26 |
respond= ""
|
| 27 |
+
for messagge in stream:
|
| 28 |
+
token=message.choices[0].delta.content
|
| 29 |
if respond:
|
| 30 |
respond+=token
|
| 31 |
yield repond
|