VladyslavH commited on
Commit
2d28c5b
·
1 Parent(s): 66f7210

fix text content

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -204,7 +204,7 @@ def bot(
204
  content = msg.get("content")
205
 
206
  if isinstance(content, str):
207
- processor_history.append({"role": role, "content": {"type": "text", "text": content}})
208
  elif isinstance(content, tuple):
209
  formatted_content = []
210
  tmp_path, _ = content
 
204
  content = msg.get("content")
205
 
206
  if isinstance(content, str):
207
+ processor_history.append({"role": role, "content": [{"type": "text", "text": content}]})
208
  elif isinstance(content, tuple):
209
  formatted_content = []
210
  tmp_path, _ = content