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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -19,12 +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, 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
  )
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, 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