laitkor commited on
Commit
f74464a
·
verified ·
1 Parent(s): 516a9d8

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +42 -0
app.py ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def gather_ingredients():
4
+ return "Gather Ingredients:\n- Coffee beans\n- Water\n- Milk (optional)\n- Sugar (optional)"
5
+
6
+ def equipment_needed():
7
+ return "Equipment Needed:\n- Coffee grinder\n- Coffee maker or French press\n- Mug"
8
+
9
+ def measure_and_grind():
10
+ return "Measure and Grind the Coffee Beans:\n- Use approximately 2 tablespoons of coffee beans per 6 ounces of water.\n- Grind the beans to a medium-coarse consistency."
11
+
12
+ def boil_water():
13
+ return "Boil Water:\n- Heat water to around 200°F (93°C)."
14
+
15
+ def brew_coffee():
16
+ return "Brew the Coffee:\n- If using a coffee maker, follow the manufacturer's instructions.\n- If using a French press, add the ground coffee to the press, pour hot water over it, stir, place the lid on, and let it steep for about 4 minutes before pressing down the plunger."
17
+
18
+ def serve_and_enjoy():
19
+ return "Serve and Enjoy:\n- Pour the brewed coffee into a mug.\n- Add milk and sugar if desired."
20
+
21
+ with gr.Blocks() as demo:
22
+ gr.Markdown("# Interactive Coffee Making Workflow")
23
+
24
+ with gr.Accordion("Step 1: Gather Ingredients", open=False):
25
+ gr.Markdown(gather_ingredients())
26
+
27
+ with gr.Accordion("Step 2: Equipment Needed", open=False):
28
+ gr.Markdown(equipment_needed())
29
+
30
+ with gr.Accordion("Step 3: Measure and Grind the Coffee Beans", open=False):
31
+ gr.Markdown(measure_and_grind())
32
+
33
+ with gr.Accordion("Step 4: Boil Water", open=False):
34
+ gr.Markdown(boil_water())
35
+
36
+ with gr.Accordion("Step 5: Brew the Coffee", open=False):
37
+ gr.Markdown(brew_coffee())
38
+
39
+ with gr.Accordion("Step 6: Serve and Enjoy", open=False):
40
+ gr.Markdown(serve_and_enjoy())
41
+
42
+ demo.launch()