Spaces:
Sleeping
Sleeping
OmPrakashSingh1704
commited on
Commit
•
bfd5c49
1
Parent(s):
f39d7c7
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,6 @@ client = OpenAI(
|
|
8 |
api_key = os.getenv("OPENAI-API-KEY")
|
9 |
)
|
10 |
|
11 |
-
|
12 |
if 'recipe' not in st.session_state:
|
13 |
st.session_state.recipe = None
|
14 |
|
@@ -109,7 +108,7 @@ def generate_recipe(user_inputs):
|
|
109 |
prompt = create_detailed_prompt(user_inputs['user_direction'], user_inputs['exclusions'], user_inputs['serving_size'], user_inputs['difficulty'])
|
110 |
messages = [{"role": "user", "content": prompt}]
|
111 |
st.session_state.recipe = client.chat.completions.create(
|
112 |
-
model="gpt-4
|
113 |
messages=messages,
|
114 |
temperature=0.75,
|
115 |
top_p=0.75,
|
|
|
8 |
api_key = os.getenv("OPENAI-API-KEY")
|
9 |
)
|
10 |
|
|
|
11 |
if 'recipe' not in st.session_state:
|
12 |
st.session_state.recipe = None
|
13 |
|
|
|
108 |
prompt = create_detailed_prompt(user_inputs['user_direction'], user_inputs['exclusions'], user_inputs['serving_size'], user_inputs['difficulty'])
|
109 |
messages = [{"role": "user", "content": prompt}]
|
110 |
st.session_state.recipe = client.chat.completions.create(
|
111 |
+
model="gpt-4",
|
112 |
messages=messages,
|
113 |
temperature=0.75,
|
114 |
top_p=0.75,
|