adrianpierce commited on
Commit
7508171
1 Parent(s): 407db69

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -12
app.py CHANGED
@@ -76,25 +76,24 @@ user_inputs = {
76
  def create_detailed_prompt(user_direction, exclusions, serving_size, difficulty):
77
  if difficulty == "Quick & Easy":
78
  prompt = (
79
- f"Please provide a 'Quick and Easy' recipe for {user_direction} with a serving size of {serving_size}. "
80
- f"It should require as few ingredients as possible and should be ready as little time as possible. "
81
  f"The steps should be simple, and the ingredients should be commonly found in a household pantry. "
82
- f"Ensure to exclude {exclusions} from the recipe."
83
  )
84
  elif difficulty == "Intermediate":
85
  prompt = (
86
- f"I'm looking for a recipe for a classic {user_direction} with a serving size of {serving_size} that offers a bit of a cooking challenge "
87
- f"but doesn't require professional skills.The recipe should feature traditional ingredients and techniques that are authentic to its cuisine. "
88
- f"Please provide a step-by-step guide that explains the process in detail. "
89
- f"Ensure to exclude {exclusions} from the recipe."
90
  )
91
  elif difficulty == "Professional":
92
  prompt = (
93
- f"Create an advanced recipe for {user_direction} with a serving size of {serving_size} that pushes the boundaries of culinary arts."
94
- f"This recipe should integrate unique ingredients, advanced cooking techniques, and innovative presentations."
95
- f"I'm aiming for a dish that could be served at a high-end restaurant or would impress at a gourmet food competition."
96
- f"Please detail the preparation and cooking process, considering that complexity and creativity are more important than prep and cooking time. "
97
- f"Ensure to exclude {exclusions} from the recipe."
98
  )
99
  return prompt
100
 
 
76
  def create_detailed_prompt(user_direction, exclusions, serving_size, difficulty):
77
  if difficulty == "Quick & Easy":
78
  prompt = (
79
+ f"Provide a 'Quick and Easy' recipe for {user_direction} that excludes {exclusions} and has a serving size of {serving_size}. "
80
+ f"It should require as few ingredients as possible and should be ready in as little time as possible. "
81
  f"The steps should be simple, and the ingredients should be commonly found in a household pantry. "
82
+ f"Provide a detailed ingredient list and step-by-step guide that explains the instructions to prepare in detail."
83
  )
84
  elif difficulty == "Intermediate":
85
  prompt = (
86
+ f"Provide a classic recipe for {user_direction} that excludes {exclusions} and has a serving size of {serving_size}. "
87
+ f"The recipe should offer a bit of a cooking challenge but should not require professional skills. "
88
+ f"The recipe should feature traditional ingredients and techniques that are authentic to its cuisine. "
89
+ f"Provide a detailed ingredient list and step-by-step guide that explains the instructions to prepare in detail."
90
  )
91
  elif difficulty == "Professional":
92
  prompt = (
93
+ f"Provide a advanced recipe for {user_direction} that excludes {exclusions} and has a serving size of {serving_size}. "
94
+ f"The recipe should push the boundaries of culinary arts, integrating unique ingredients, advanced cooking techniques, and innovative presentations. "
95
+ f"The recipe should be able to be served at a high-end restaurant or would impress at a gourmet food competition. "
96
+ f"Provide a detailed ingredient list and step-by-step guide that explains the instructions to prepare in detail."
 
97
  )
98
  return prompt
99