GoodML commited on
Commit
c15d68b
·
verified ·
1 Parent(s): 0b74a08

Gave new and strict format

Browse files
Files changed (1) hide show
  1. app.py +81 -0
app.py CHANGED
@@ -246,6 +246,87 @@ def query_gemini_api(video_transcription, audio_transcription):
246
  "9. Festive or Thematic Relevance: Note if the recipe has any special relevance to holidays, events, or seasons.\n"
247
  "There are errors and missing parts in the video transcription part, if something is not able to interpret from the video information use the audio information\n"
248
  "If you are not able to get required information, return empty texts for the fields that I asked above instead of giving any other text response."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
249
  f"Text: {transcription}\n"
250
  )
251
 
 
246
  "9. Festive or Thematic Relevance: Note if the recipe has any special relevance to holidays, events, or seasons.\n"
247
  "There are errors and missing parts in the video transcription part, if something is not able to interpret from the video information use the audio information\n"
248
  "If you are not able to get required information, return empty texts for the fields that I asked above instead of giving any other text response."
249
+ """This is the sample response for this, I need the response EXACTLY in this format from line spacing to header gaps Everything should be exactly in this format.
250
+ **1. Recipe Name:** Beef Wellington
251
+
252
+ **2. Ingredients List:**
253
+
254
+ * Fillet of beef (quantity not specified)
255
+ * Olive oil
256
+ * Salt
257
+ * Pepper
258
+ * English mustard (or horseradish)
259
+ * 700g chestnut mushrooms
260
+ * 1 clove garlic, chopped
261
+ * Chestnuts (quantity not specified)
262
+ * Fresh thyme
263
+ * Parma ham (quantity not specified)
264
+ * Puff pastry (quantity not specified)
265
+ * Egg yolk
266
+ * Cling film
267
+
268
+
269
+ **3. Steps for Preparation:**
270
+
271
+ 1. Sear the beef fillet in a very hot pan with olive oil, seasoning with salt and pepper. Sear all sides.
272
+ 2. Brush the seared beef with English mustard (or horseradish) while still hot.
273
+ 3. Blitz chestnut mushrooms, chopped garlic, salt, pepper, and crumbled chestnuts in a blender.
274
+ 4. Cook the mushroom mixture in a hot dry pan until all the water evaporates. Stir in fresh thyme.
275
+ 5. Let the mushroom mixture cool.
276
+ 6. Overlap slices of Parma ham on cling film, creating a layer to hold the juices.
277
+ 7. Spread the cooled mushroom mixture on the Parma ham, leaving a half-inch border.
278
+ 8. Place the beef fillet on top of the mushroom mixture.
279
+ 9. Carefully lift the Parma ham and wrap it tightly around the beef, creating a cylinder shape with the cling film.
280
+ 10. Refrigerate for 15 minutes to firm up.
281
+ 11. Wrap the beef in puff pastry, trimming excess pastry and sealing the ends.
282
+ 12. Wrap the pastry-covered beef tightly in cling film again and refrigerate for 5 minutes.
283
+ 13. Remove cling film. Brush the pastry with egg yolk and score the top with a knife. Sprinkle with salt.
284
+ 14. Bake at 200 degrees for approximately 35 minutes (depending on desired doneness).
285
+ 15. Let the Wellington rest for at least 10 minutes before slicing and serving.
286
+
287
+
288
+ **4. Cooking Techniques Used:**
289
+
290
+ * Searing
291
+ * Blitzing/Blending
292
+ * Sautéing/Frying
293
+ * Wrapping
294
+ * Baking
295
+
296
+
297
+ **5. Equipment Needed:**
298
+
299
+ * Hot pan
300
+ * Blender
301
+ * Cling film
302
+ * Knife
303
+ * Pastry brush
304
+ * Oven
305
+
306
+
307
+ **6. Nutritional Information (Inferred):**
308
+
309
+ Nutritional information cannot be accurately provided without knowing the exact quantities of ingredients used. The dish is high in protein (from beef), fat (from beef, Parma ham, and puff pastry), and carbohydrates (from mushrooms, chestnuts, and puff pastry). Calorie count would be quite high.
310
+
311
+
312
+ **7. Serving size:**
313
+
314
+ Serving size is not specified, but it's likely to be sufficient for at least 2-4 people, depending on the size of the beef fillet.
315
+
316
+
317
+ **8. Special Notes or Variations:**
318
+
319
+ * Using horseradish instead of English mustard.
320
+ * A traditional recipe uses a chive and spring onion pancake instead of Parma ham. The Parma ham version is presented as lighter.
321
+ * The Wellington can be prepared the night before baking.
322
+ * Tight wrapping is crucial for even cooking and shape.
323
+
324
+
325
+ **9. Festive or Thematic Relevance:**
326
+
327
+ The recipe is presented as a Christmas alternative to roast turkey, highlighting the use of chestnuts as a seasonal ingredient.
328
+
329
+ """
330
  f"Text: {transcription}\n"
331
  )
332