Separate config value for debugging unsafe dish
This commit is contained in:
+1
-1
@@ -85,7 +85,7 @@ async def cooking_params():
|
|||||||
|
|
||||||
# 2. Run Vision Safety Check & Cook Planner Concurrently
|
# 2. Run Vision Safety Check & Cook Planner Concurrently
|
||||||
try:
|
try:
|
||||||
if getattr(config, "DEBUG", True):
|
if getattr(config, "DEBUG_DANGEROUS_AREA", True):
|
||||||
print(f"[Debug] Running safety check on predefined image")
|
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"))
|
safety_task = asyncio.to_thread(safety_checker.check_dish_safety, os.path.join(CAMERA_IMAGE_DIR, "dish_0de0ee1dab8949fc8e78796947e24ed3.jpg"))
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user