qnguyen3 commited on
Commit
2f2072e
1 Parent(s): fccbf81

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -42,7 +42,7 @@ def bot_streaming(message, history):
42
  chat_history.append({"role": "assistant", "content": assistant })
43
  chat_history.append({"role": "user", "content": message['text']})
44
  elif len(history) == 0 and image is not None:
45
- chat_history.append({"role": "user", "content": f'<image>\n{message['text']}'})
46
  elif len(history) == 0 and image is None:
47
  chat_history.append({"role": "user", "content": message['text'] })
48
 
 
42
  chat_history.append({"role": "assistant", "content": assistant })
43
  chat_history.append({"role": "user", "content": message['text']})
44
  elif len(history) == 0 and image is not None:
45
+ chat_history.append({"role": "user", "content": f"<image>\n{message['text']}"})
46
  elif len(history) == 0 and image is None:
47
  chat_history.append({"role": "user", "content": message['text'] })
48