Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -10,8 +10,10 @@ def suggest_recipes(ingredients):
|
|
10 |
f"You are an expert in cooking. Please suggest 3 recipes using the following "
|
11 |
f"ingredients: {ingredients}. Provide a title for each recipe, include "
|
12 |
f"preparation time, and list step-by-step directions."
|
|
|
13 |
)
|
14 |
-
response = model(prompt
|
|
|
15 |
|
16 |
# Parse the generated text to create structured recipes
|
17 |
generated_text = response[0]['generated_text']
|
|
|
10 |
f"You are an expert in cooking. Please suggest 3 recipes using the following "
|
11 |
f"ingredients: {ingredients}. Provide a title for each recipe, include "
|
12 |
f"preparation time, and list step-by-step directions."
|
13 |
+
f"Do not write this prompt in generated text"
|
14 |
)
|
15 |
+
response = model(prompt)
|
16 |
+
# , max_length=512, num_return_sequences=1)
|
17 |
|
18 |
# Parse the generated text to create structured recipes
|
19 |
generated_text = response[0]['generated_text']
|