hlydecker commited on
Commit
3e6ef97
1 Parent(s): 674b979

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,7 +7,7 @@ boba_data = pd.DataFrame(columns=["Date", "Shop", "Drink", "Toppings", "Size", "
7
  def submit_boba_data(date, shop, drink, toppings, size, rating, price):
8
  global boba_data
9
  new_entry = {"Date": date, "Shop": shop, "Drink": drink, "Toppings": toppings, "Size": size, "Rating": rating, "Price": price}
10
- boba_data = boba_data.append(new_entry, ignore_index=True)
11
  return boba_data
12
 
13
  def get_leaderboard():
@@ -26,7 +26,7 @@ inputs = [
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
  ]
 
7
  def submit_boba_data(date, shop, drink, toppings, size, rating, price):
8
  global boba_data
9
  new_entry = {"Date": date, "Shop": shop, "Drink": drink, "Toppings": toppings, "Size": size, "Rating": rating, "Price": price}
10
+ boba_data = boba_data.concat(new_entry, ignore_index=True)
11
  return boba_data
12
 
13
  def get_leaderboard():
 
26
  gr.Textbox(label="Shop"),
27
  gr.Textbox(label="Drink"),
28
  gr.Textbox(label="Toppings"),
29
+ gr.Dropdown(["Medium", "Large"], label="Size"),
30
  gr.Slider(1, 5, label="Rating"),
31
  gr.Number(label="Price")
32
  ]