Spaces:
Runtime error
Runtime error
Commit
·
09c5f57
1
Parent(s):
7050ec2
Update app.py
Browse files
app.py
CHANGED
@@ -70,8 +70,8 @@ user_inputs = {
|
|
70 |
|
71 |
def generate_recipe(user_inputs):
|
72 |
#with st.spinner('Building the perfect recipe for you...'):
|
73 |
-
context = """
|
74 |
-
Output
|
75 |
recipe_name (string): provide a name for the generated recipe
|
76 |
recipe_description (string): a brief description of the recipe itself, the contents and/or instructions, 3 sentences maximum
|
77 |
recipe_serving_size (string): the serving size of the recipe (example: "4 people")
|
@@ -87,7 +87,7 @@ def generate_recipe(user_inputs):
|
|
87 |
st.session_state.gpt_response = openai.ChatCompletion.create(
|
88 |
model="gpt-4",
|
89 |
messages=messages,
|
90 |
-
temperature=0.
|
91 |
)
|
92 |
|
93 |
|
|
|
70 |
|
71 |
def generate_recipe(user_inputs):
|
72 |
#with st.spinner('Building the perfect recipe for you...'):
|
73 |
+
context = """You are an expert chef that can make a wide range of recipes based on user input.
|
74 |
+
Output a recipe in a valid JSON object with the following properties:
|
75 |
recipe_name (string): provide a name for the generated recipe
|
76 |
recipe_description (string): a brief description of the recipe itself, the contents and/or instructions, 3 sentences maximum
|
77 |
recipe_serving_size (string): the serving size of the recipe (example: "4 people")
|
|
|
87 |
st.session_state.gpt_response = openai.ChatCompletion.create(
|
88 |
model="gpt-4",
|
89 |
messages=messages,
|
90 |
+
temperature=0.8
|
91 |
)
|
92 |
|
93 |
|