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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
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. 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
 
 
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