Spaces:
Runtime error
Runtime error
Vision-CAIR
commited on
Commit
β’
4c8bd95
1
Parent(s):
6a94f14
Update app.py
Browse files
app.py
CHANGED
@@ -452,7 +452,7 @@ def gradio_ask(user_message, chatbot, chat_state, gr_img, img_list, upload_flag,
|
|
452 |
visual_img, _ = visualize_all_bbox_together(gr_img, user_message)
|
453 |
if visual_img is not None:
|
454 |
file_path = save_tmp_img(visual_img)
|
455 |
-
path_list.append(file_path)
|
456 |
chatbot = chatbot + [[(file_path,), None]]
|
457 |
|
458 |
return text_box_show, chatbot, chat_state, img_list, upload_flag, replace_flag
|
@@ -498,7 +498,7 @@ def gradio_visualize(chatbot, gr_img, path_list):
|
|
498 |
if len(generation_color):
|
499 |
chatbot[-1][1] = generation_color
|
500 |
file_path = save_tmp_img(visual_img)
|
501 |
-
path_list.append(file_path)
|
502 |
chatbot = chatbot + [[None, (file_path,)]]
|
503 |
|
504 |
return chatbot
|
|
|
452 |
visual_img, _ = visualize_all_bbox_together(gr_img, user_message)
|
453 |
if visual_img is not None:
|
454 |
file_path = save_tmp_img(visual_img)
|
455 |
+
# path_list.append(file_path)
|
456 |
chatbot = chatbot + [[(file_path,), None]]
|
457 |
|
458 |
return text_box_show, chatbot, chat_state, img_list, upload_flag, replace_flag
|
|
|
498 |
if len(generation_color):
|
499 |
chatbot[-1][1] = generation_color
|
500 |
file_path = save_tmp_img(visual_img)
|
501 |
+
# path_list.append(file_path)
|
502 |
chatbot = chatbot + [[None, (file_path,)]]
|
503 |
|
504 |
return chatbot
|