hlydecker commited on
Commit
674b979
·
verified ·
1 Parent(s): 899f23c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -22,26 +22,26 @@ def get_statistics():
22
 
23
  # Define Gradio inputs and interface
24
  inputs = [
25
- gr.inputs.Textbox(label="Date"),
26
- gr.inputs.Textbox(label="Shop"),
27
- gr.inputs.Textbox(label="Drink"),
28
- gr.inputs.Textbox(label="Toppings"),
29
- gr.inputs.Dropdown(["Small", "Medium", "Large"], label="Size"),
30
- gr.inputs.Slider(1, 5, label="Rating"),
31
- gr.inputs.Number(label="Price")
32
  ]
33
 
34
  iface = gr.Interface(
35
  fn=submit_boba_data,
36
  inputs=inputs,
37
- outputs=gr.DataFrame(),
38
  title="Boba Tracker Data Entry"
39
  )
40
 
41
  leaderboard_iface = gr.Interface(
42
  fn=get_leaderboard,
43
  inputs=None,
44
- outputs=gr.DataFrame(),
45
  title="Boba Leaderboard"
46
  )
47
 
 
22
 
23
  # Define Gradio inputs and interface
24
  inputs = [
25
+ gr.Textbox(label="Date"),
26
+ gr.Textbox(label="Shop"),
27
+ gr.Textbox(label="Drink"),
28
+ gr.Textbox(label="Toppings"),
29
+ gr.Dropdown(["Small", "Medium", "Large"], label="Size"),
30
+ gr.Slider(1, 5, label="Rating"),
31
+ gr.Number(label="Price")
32
  ]
33
 
34
  iface = gr.Interface(
35
  fn=submit_boba_data,
36
  inputs=inputs,
37
+ outputs=gr.Dataframe(),
38
  title="Boba Tracker Data Entry"
39
  )
40
 
41
  leaderboard_iface = gr.Interface(
42
  fn=get_leaderboard,
43
  inputs=None,
44
+ outputs=gr.Dataframe(),
45
  title="Boba Leaderboard"
46
  )
47