Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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(
|
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:
|