pratikshahp commited on
Commit
b82d0c4
·
verified ·
1 Parent(s): c23a14f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -19,12 +19,8 @@ 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 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 (e.g., non-food items, random words, questions, or incomplete), "
26
- f"Respond only with: 'I'm sorry, but I can't process this request due to invalid ingredients.' "
27
- f"Strictly Do not provide any recipes, alternative suggestions, or further explanations in such cases."
28
  )
29
 
30
 
 
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. Provide a title for each recipe, preparation time, and detailed step-by-step instructions. Do not include the ingredients list explicitly in the response. "
23
+ 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, respond only with: 'I'm sorry, but I can't process this request due to invalid ingredients. It is strictly recommended, do not provide any recipes, alternative suggestions, or further explanations in such cases."
 
 
 
 
24
  )
25
 
26