Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -91,7 +91,8 @@ def streaming(userText,idf):
|
|
| 91 |
for chunk in response:
|
| 92 |
try:
|
| 93 |
#print(chunk.choices[0].delta.content)
|
| 94 |
-
out = (chunk.choices[0].delta.content).replace("
|
|
|
|
| 95 |
print(out)
|
| 96 |
yield out.replace(":","")
|
| 97 |
except:
|
|
|
|
| 91 |
for chunk in response:
|
| 92 |
try:
|
| 93 |
#print(chunk.choices[0].delta.content)
|
| 94 |
+
out = (chunk.choices[0].delta.content).replace("SD","")
|
| 95 |
+
out = out.replace("R","")
|
| 96 |
print(out)
|
| 97 |
yield out.replace(":","")
|
| 98 |
except:
|