pratikshahp commited on
Commit
533c8d9
·
verified ·
1 Parent(s): ff4db0f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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, max_length=512, num_return_sequences=1)
 
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']