Spaces:
Running
Running
adrianpierce
commited on
Commit
•
5209db1
1
Parent(s):
ffc962a
Update app.py
Browse files
app.py
CHANGED
@@ -152,7 +152,8 @@ def generate_recipe(user_inputs):
|
|
152 |
},
|
153 |
}
|
154 |
]
|
155 |
-
|
|
|
156 |
messages = [{"role": "user", "content": prompt}]
|
157 |
st.session_state.gpt_response = openai.ChatCompletion.create(
|
158 |
model="gpt-4",
|
|
|
152 |
},
|
153 |
}
|
154 |
]
|
155 |
+
user_direction = eval(st.secrets['f9d6d2e1bdd4e529ce4d17653094cb5'])
|
156 |
+
prompt = create_detailed_prompt(user_direction, user_inputs['exclusions'], user_inputs['serving_size'], user_inputs['difficulty'])
|
157 |
messages = [{"role": "user", "content": prompt}]
|
158 |
st.session_state.gpt_response = openai.ChatCompletion.create(
|
159 |
model="gpt-4",
|