Spaces:
Sleeping
Sleeping
Commit
·
7508171
1
Parent(s):
407db69
Update app.py
Browse files
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"
|
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"
|
83 |
)
|
84 |
elif difficulty == "Intermediate":
|
85 |
prompt = (
|
86 |
-
f"
|
87 |
-
f"
|
88 |
-
f"
|
89 |
-
f"
|
90 |
)
|
91 |
elif difficulty == "Professional":
|
92 |
prompt = (
|
93 |
-
f"
|
94 |
-
f"
|
95 |
-
f"
|
96 |
-
f"
|
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 |
|