Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -117,7 +117,7 @@ def respond(message, api_key, max_tokens, top_p, temperature):
|
|
117 |
if not line_content:
|
118 |
continue
|
119 |
|
120 |
-
|
121 |
chunk = json.loads(line_content)
|
122 |
chunk_message = chunk.get("chunk", {}).get("content", "")
|
123 |
assistant_reply += chunk_message
|
|
|
117 |
if not line_content:
|
118 |
continue
|
119 |
|
120 |
+
try:
|
121 |
chunk = json.loads(line_content)
|
122 |
chunk_message = chunk.get("chunk", {}).get("content", "")
|
123 |
assistant_reply += chunk_message
|