Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -19,10 +19,10 @@ def suggest_recipes(ingredients):
|
|
19 |
# Create a prompt for the recipe generation
|
20 |
prompt = (
|
21 |
f"You are an expert chef. Carefully review the provided ingredients: {ingredients}. "
|
22 |
-
f"If all ingredients are valid, suggest exactly
|
23 |
f"Provide a title for each recipe, preparation time, and detailed step-by-step instructions. "
|
24 |
f"Do not include the ingredients list explicitly in the response. "
|
25 |
-
f"If the ingredients are invalid (e.g., non-food items, random words, or incomplete), "
|
26 |
f"respond only with: 'I'm sorry, but I can't process this request due to invalid ingredients.' "
|
27 |
f"Do not provide any recipes, alternative suggestions, or further explanations in such cases."
|
28 |
)
|
|
|
19 |
# Create a prompt for the recipe generation
|
20 |
prompt = (
|
21 |
f"You are an expert chef. Carefully review the provided ingredients: {ingredients}. "
|
22 |
+
f"If all ingredients are valid, suggest exactly one recipes using them. "
|
23 |
f"Provide a title for each recipe, preparation time, and detailed step-by-step instructions. "
|
24 |
f"Do not include the ingredients list explicitly in the response. "
|
25 |
+
f"If the ingredients are invalid that are not use to make a food (e.g., non-food items, random words, or incomplete), "
|
26 |
f"respond only with: 'I'm sorry, but I can't process this request due to invalid ingredients.' "
|
27 |
f"Do not provide any recipes, alternative suggestions, or further explanations in such cases."
|
28 |
)
|