Follow the damn prompt CJ
This commit is contained in:
@@ -21,10 +21,10 @@ def check_dish_safety(image_path: str) -> dict:
|
|||||||
prompt = (
|
prompt = (
|
||||||
"You are an expert microwave safety quality inspector analyzing a top-down camera frame.\n\n"
|
"You are an expert microwave safety quality inspector analyzing a top-down camera frame.\n\n"
|
||||||
"INSPECTION STEPS:\n"
|
"INSPECTION STEPS:\n"
|
||||||
"Describe what you see in the image, identify any potential hazards, and determine if the dish is safe to microwave.\n"
|
"Describe what you see in the image, identify any viewable hazards, and determine if the dish is safe to microwave.\n"
|
||||||
"Alert only if the cooking of the dish will cause damage to the microwave or the dish itself.\n"
|
"Alert only if the cooking of the dish **will cause damage** to the microwave or the dish itself.\n"
|
||||||
"NOTES:\n"
|
"NOTES:\n"
|
||||||
"The camera focus is wrongly setup, so the image may be blurry. Please do not take the blurriness into account when analyzing the dish.\n"
|
"The camera focus is wrongly setup, so the image may be blurry. Please do not take the blurriness or lack of view into a hazardn"
|
||||||
)
|
)
|
||||||
|
|
||||||
response_raw = generate(
|
response_raw = generate(
|
||||||
|
|||||||
Reference in New Issue
Block a user