Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -503,9 +503,9 @@ def chat_app_logic(message, history):
|
|
503 |
if isinstance(part, str):
|
504 |
response_parts.append(part)
|
505 |
elif isinstance(part, dict) and 'content' in part:
|
506 |
-
response_parts.append(part['content'])
|
507 |
|
508 |
-
response = ''.join(response_parts
|
509 |
# Run the model and get the response (convert generator to string)
|
510 |
prompt=message,
|
511 |
history=history,
|
|
|
503 |
if isinstance(part, str):
|
504 |
response_parts.append(part)
|
505 |
elif isinstance(part, dict) and 'content' in part:
|
506 |
+
response_parts.append(part['content']),
|
507 |
|
508 |
+
response = ''.join(response_parts,
|
509 |
# Run the model and get the response (convert generator to string)
|
510 |
prompt=message,
|
511 |
history=history,
|