Fake photo when debugging
This commit is contained in:
@@ -88,6 +88,8 @@ async def cooking_params():
|
||||
if getattr(config, "DEBUG_DANGEROUS_AREA", False):
|
||||
print(f"[Debug] Running safety check on predefined image")
|
||||
safety_task = asyncio.to_thread(safety_checker.check_dish_safety, os.path.join(CAMERA_IMAGE_DIR, "dish_0de0ee1dab8949fc8e78796947e24ed3.jpg"))
|
||||
elif getattr(config, "DEBUG", False):
|
||||
safety_task = asyncio.to_thread(safety_checker.check_dish_safety, os.path.join("microwaveDish.jpg"))
|
||||
else:
|
||||
safety_task = asyncio.to_thread(safety_checker.check_dish_safety, filepath)
|
||||
planner_task = asyncio.to_thread(
|
||||
|
||||
Reference in New Issue
Block a user