hiyouga commited on
Commit
2ca3c06
1 Parent(s): 1ae1376

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -47,7 +47,7 @@ def stream_chat(message: Dict[str, str], history: list):
47
  history = history[1:]
48
 
49
  if image_path is not None:
50
- image = Image.open(image_path)
51
  else:
52
  image = Image.new("RGB", (100, 100), (255, 255, 255))
53
 
 
47
  history = history[1:]
48
 
49
  if image_path is not None:
50
+ image = Image.open(image_path).convert("RGB")
51
  else:
52
  image = Image.new("RGB", (100, 100), (255, 255, 255))
53