Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -223,7 +223,7 @@ def model_inference(input_dict, history):
|
|
223 |
complete_assistant_response_for_gradio += [f"\n<b>Executing Visual Operations ...</b> @{tool_name}({tool_args})\n\n"]
|
224 |
yield complete_assistant_response_for_gradio # Update Gradio display
|
225 |
video_flag = False
|
226 |
-
|
227 |
raw_result = execute_tool(all_images, all_images, tool_args, tool_name, is_video=video_flag)
|
228 |
print(raw_result)
|
229 |
proc_img = raw_result
|
@@ -242,7 +242,7 @@ def model_inference(input_dict, history):
|
|
242 |
# complete_assistant_response_for_gradio += f"\n<b>Analyzing Operation Result ...</b> @region(size={proc_img.size[0]}x{proc_img.size[1]})\n\n"
|
243 |
complete_assistant_response_for_gradio += [f"\n<b>Analyzing Operation Result ...</b> @region(size={proc_img.size[0]}x{proc_img.size[1]})\n\n"]
|
244 |
yield complete_assistant_response_for_gradio # Update Gradio display
|
245 |
-
all_images.append(proc_img)
|
246 |
|
247 |
|
248 |
else:
|
|
|
223 |
complete_assistant_response_for_gradio += [f"\n<b>Executing Visual Operations ...</b> @{tool_name}({tool_args})\n\n"]
|
224 |
yield complete_assistant_response_for_gradio # Update Gradio display
|
225 |
video_flag = False
|
226 |
+
print(f"candidate images", all_images)
|
227 |
raw_result = execute_tool(all_images, all_images, tool_args, tool_name, is_video=video_flag)
|
228 |
print(raw_result)
|
229 |
proc_img = raw_result
|
|
|
242 |
# complete_assistant_response_for_gradio += f"\n<b>Analyzing Operation Result ...</b> @region(size={proc_img.size[0]}x{proc_img.size[1]})\n\n"
|
243 |
complete_assistant_response_for_gradio += [f"\n<b>Analyzing Operation Result ...</b> @region(size={proc_img.size[0]}x{proc_img.size[1]})\n\n"]
|
244 |
yield complete_assistant_response_for_gradio # Update Gradio display
|
245 |
+
# all_images.append(proc_img)
|
246 |
|
247 |
|
248 |
else:
|