pratikshahp commited on
Commit
160cf0a
·
verified ·
1 Parent(s): 967260e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,8 +19,8 @@ def suggest_recipes(ingredients):
19
  # Create a prompt for the recipe generation
20
  prompt = (
21
  f"You are an expert in cooking. If any of the following ingredients are invalid or unrecognizable, "
22
- f"write a soft two-line apology for not being able to provide recipes using: {ingredients}. "
23
- f"Otherwise, please suggest 2 recipes using the valid ingredients. Provide a title for each recipe, "
24
  f"include preparation time, and list step-by-step directions. Do not include the ingredients list in the response."
25
  )
26
 
 
19
  # Create a prompt for the recipe generation
20
  prompt = (
21
  f"You are an expert in cooking. If any of the following ingredients are invalid or unrecognizable, "
22
+ f"write a soft two-line apology for not being able to provide recipes using: {ingredients} and please do not suggest any recipe. "
23
+ f"Otherwise, please suggest 2 recipes using the valid {ingredients}. Provide a title for each recipe, "
24
  f"include preparation time, and list step-by-step directions. Do not include the ingredients list in the response."
25
  )
26