Spaces:
BAAI
/
Running on L40S

ryanzhangfan commited on
Commit
a1041e9
1 Parent(s): 120f9e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -178,7 +178,7 @@ def chat(history, user_input, user_image):
178
  # Use Emu3-Chat for vision-language understanding
179
  response = vision_language_understanding(user_image, user_input)
180
  # Append the user input and response to the history
181
- history = history + [(image2str(user_image) + user_input, response)]
182
  else:
183
  # Use Emu3-Gen for image generation
184
  generated_image = generate_image(user_input)
 
178
  # Use Emu3-Chat for vision-language understanding
179
  response = vision_language_understanding(user_image, user_input)
180
  # Append the user input and response to the history
181
+ history = history + [(image2str(user_image) + "\n" + user_input, response)]
182
  else:
183
  # Use Emu3-Gen for image generation
184
  generated_image = generate_image(user_input)