JustinGerm commited on
Commit
6e019e4
1 Parent(s): f6cde70

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -41,13 +41,13 @@ def calculate_coffee_temp(cooling_time_min, initial_temperature_C, ambient_tempe
41
  iface = gr.Interface(
42
  fn=calculate_coffee_temp,
43
  inputs=[
44
- ("number", "Cooling time (minutes)"),
45
- ("number", "Initial temperature of coffee (C)"),
46
- ("number", "Ambient temperature (C)"),
47
- ("number", "Volume of coffee (ml)"),
48
- ("number", "Diameter of mug (mm)")
49
  ],
50
- outputs=gr.outputs.Number(label="Estimated coffee temperature (C)"),
51
  )
52
 
53
  iface.launch()
 
41
  iface = gr.Interface(
42
  fn=calculate_coffee_temp,
43
  inputs=[
44
+ gr.inputs.Number(label="Cooling time (minutes)"),
45
+ gr.inputs.Number(label="Initial temperature of coffee (C)"),
46
+ gr.inputs.Number(label="Ambient temperature (C)"),
47
+ gr.inputs.Number(label="Volume of coffee (ml)"),
48
+ gr.inputs.Number(label="Diameter of mug (mm)")
49
  ],
50
+ outputs=gr.outputs.Textbox(label="Estimated coffee temperature (C)"),
51
  )
52
 
53
  iface.launch()