Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
|