Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -131,7 +131,7 @@ if user_query:
|
|
| 131 |
response = ""
|
| 132 |
try:
|
| 133 |
for chunk in chat_streaming:
|
| 134 |
-
content = chunk.
|
| 135 |
if content: # Ensure content is not None
|
| 136 |
response += content
|
| 137 |
st.write("🤖:")
|
|
|
|
| 131 |
response = ""
|
| 132 |
try:
|
| 133 |
for chunk in chat_streaming:
|
| 134 |
+
content = chunk.choices[0].delta.content
|
| 135 |
if content: # Ensure content is not None
|
| 136 |
response += content
|
| 137 |
st.write("🤖:")
|