OmPrakashSingh1704 commited on
Commit
1f5ff8e
·
verified ·
1 Parent(s): 76d4008

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +46 -46
app.py CHANGED
@@ -145,58 +145,58 @@ def cooking():
145
  user_inputs['serving_size'], user_inputs['difficulty'])
146
 
147
  functions = [
148
- {
149
- "name": "provide_recipe",
150
- "description": "Provides a detailed recipe strictly adhering to the user input/specifications, especially ingredient exclusions and the recipe difficulty",
151
- "parameters": {
152
- "type": "object",
153
- "properties": {
154
- "name": {
155
- "type": "string",
156
- "description": "A creative name for the recipe"
157
- },
158
- "description": {
159
- "type": "string",
160
- "description": "a brief one-sentence description of the provided recipe"
161
- },
162
- "ingredients": {
163
- "type": "array",
164
- "items": {
165
- "type": "object",
166
- "properties": {
167
- "name": {
168
- "type": "string",
169
- "description": "Quantity and name of the ingredient"
 
170
  }
171
  }
172
- }
173
- },
174
- "instructions": {
175
- "type": "array",
176
- "items": {
177
- "type": "object",
178
- "properties": {
179
- "step_number": {
180
- "type": "number",
181
- "description": "The sequence number of this step"
182
- },
183
- "instruction": {
184
- "type": "string",
185
- "description": "Detailed description of what to do in this step"
186
  }
187
  }
188
  }
189
- }
 
 
 
 
 
 
190
  },
191
- "required": [
192
- "name",
193
- "description",
194
- "ingredients",
195
- "instructions"
196
- ],
197
- },
198
- }
199
- ]
200
 
201
  generate_kwargs = dict(
202
  temperature=0.9,
 
145
  user_inputs['serving_size'], user_inputs['difficulty'])
146
 
147
  functions = [
148
+ {
149
+ "name": "provide_recipe",
150
+ "description": "Provides a detailed recipe strictly adhering to the user input/specifications, especially ingredient exclusions and the recipe difficulty",
151
+ "parameters": {
152
+ "type": "object",
153
+ "properties": {
154
+ "name": {
155
+ "type": "string",
156
+ "description": "A creative name for the recipe"
157
+ },
158
+ "description": {
159
+ "type": "string",
160
+ "description": "a brief one-sentence description of the provided recipe"
161
+ },
162
+ "ingredients": {
163
+ "type": "array",
164
+ "items": {
165
+ "type": "object",
166
+ "properties": {
167
+ "name": {
168
+ "type": "string",
169
+ "description": "Quantity and name of the ingredient"
170
+ }
171
  }
172
  }
173
+ },
174
+ "instructions": {
175
+ "type": "array",
176
+ "items": {
177
+ "type": "object",
178
+ "properties": {
179
+ "step_number": {
180
+ "type": "number",
181
+ "description": "The sequence number of this step"
182
+ },
183
+ "instruction": {
184
+ "type": "string",
185
+ "description": "Detailed description of what to do in this step"
186
+ }
187
  }
188
  }
189
  }
190
+ },
191
+ "required": [
192
+ "name",
193
+ "description",
194
+ "ingredients",
195
+ "instructions"
196
+ ],
197
  },
198
+ }
199
+ ]
 
 
 
 
 
 
 
200
 
201
  generate_kwargs = dict(
202
  temperature=0.9,