Details in prompt
This commit is contained in:
@@ -19,7 +19,7 @@ class DishSafetyResult(BaseModel):
|
|||||||
def check_dish_safety(image_path: str) -> dict:
|
def check_dish_safety(image_path: str) -> dict:
|
||||||
prompt = (
|
prompt = (
|
||||||
"Analyze this top-down photo of a dish prepared for microwave cooking. "
|
"Analyze this top-down photo of a dish prepared for microwave cooking. "
|
||||||
"Inspect the area for metal utensils, aluminum foil, metallic dish patterns, or unvented plastic wraps that could be dangerous for the cooking process or pose a safety risk."
|
"Inspect the area for metal utensils, aluminum foil, metallic dish patterns, or unvented plastic wraps that could be dangerous for the dish microwave cooking process or pose a safety risk."
|
||||||
)
|
)
|
||||||
|
|
||||||
# 2. Pass the Pydantic class directly to generate()
|
# 2. Pass the Pydantic class directly to generate()
|
||||||
|
|||||||
Reference in New Issue
Block a user