Update app.py
Browse files
app.py
CHANGED
|
@@ -135,7 +135,7 @@ def _launch_demo(args, model, tokenizer):
|
|
| 135 |
|
| 136 |
if 'image' in query[0]:
|
| 137 |
image = tokenizer.draw_bbox_on_latest_picture(response)
|
| 138 |
-
|
| 139 |
image_path = save_image(image)
|
| 140 |
_chatbot[-1] = (chat_query, (image_path,))
|
| 141 |
else:
|
|
|
|
| 135 |
|
| 136 |
if 'image' in query[0]:
|
| 137 |
image = tokenizer.draw_bbox_on_latest_picture(response)
|
| 138 |
+
if image is not None:
|
| 139 |
image_path = save_image(image)
|
| 140 |
_chatbot[-1] = (chat_query, (image_path,))
|
| 141 |
else:
|