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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -224,7 +224,7 @@ def model_inference(input_dict, history):
224
  yield complete_assistant_response_for_gradio # Update Gradio display
225
  video_flag = False
226
 
227
- raw_result = execute_tool(imagelist, rawimagelist, tool_args, tool_name, is_video=video_flag)
228
  print(raw_result)
229
  proc_img = raw_result
230
  all_images += [proc_img]
@@ -242,6 +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
 
246
 
247
  else:
 
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
230
  all_images += [proc_img]
 
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: