Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -19,8 +19,12 @@ 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 and kitchen-friendly, suggest exactly one recipe using them.
|
23 |
-
f"
|
|
|
|
|
|
|
|
|
24 |
)
|
25 |
|
26 |
|
|
|
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 and kitchen-friendly, suggest exactly one recipe 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 used to make a food. for example, non-food items, random words, questions, or incomplete sentences,"
|
26 |
+
f"Respond only with: 'I'm sorry, but I can't process this request due to invalid ingredients."
|
27 |
+
f"It is strictly recommended, do not provide any recipes, alternative suggestions, or further explanations in such cases."
|
28 |
)
|
29 |
|
30 |
|