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