Spaces:
Running
on
L40S
Running
on
L40S
Update app.py
Browse files
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)
|