JasperHaozhe commited on
Commit
f4bd3e6
·
verified ·
1 Parent(s): 70e42f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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: