Spaces:
Sleeping
Sleeping
hye
Browse files
app.py
CHANGED
|
@@ -24,7 +24,7 @@ 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 |
response= ""
|
| 27 |
-
|
| 28 |
token=message.choices[0].delta.content
|
| 29 |
if response:
|
| 30 |
response+=token
|
|
|
|
| 24 |
)
|
| 25 |
return respond.choices[0].message.content.strip()
|
| 26 |
response= ""
|
| 27 |
+
for messagge in stream:
|
| 28 |
token=message.choices[0].delta.content
|
| 29 |
if response:
|
| 30 |
response+=token
|