Corin1998 commited on
Commit
8b1158b
·
verified ·
1 Parent(s): 945ebd4

Update ui/components.py

Browse files
Files changed (1) hide show
  1. ui/components.py +5 -1
ui/components.py CHANGED
@@ -5,7 +5,7 @@ INTERESTS = ["Food", "Culture", "Nature", "Shopping", "Nightlife", "Kids"]
5
  BUDGETS = ["Low", "Medium", "High"]
6
  PACES = ["Relaxed", "Normal", "Power"]
7
  WEATHER_OVERRIDE = ["(auto)", "sunny", "cloudy", "rainy", "snowy"]
8
-
9
 
10
  def build_ui():
11
  with gr.Row():
@@ -18,6 +18,8 @@ def build_ui():
18
  budget_in = gr.Radio(BUDGETS, value="Medium", label="Budget")
19
  pace_in = gr.Radio(PACES, value="Normal", label="Pace")
20
  weather_in = gr.Dropdown(WEATHER_OVERRIDE, value="(auto)", label="Weather override")
 
 
21
 
22
  with gr.Row():
23
  seed_btn = gr.Button("Seed sample data")
@@ -37,6 +39,8 @@ def build_ui():
37
  pace_in,
38
  date_in,
39
  weather_in,
 
 
40
  build_btn,
41
  seed_btn,
42
  gen_btn,
 
5
  BUDGETS = ["Low", "Medium", "High"]
6
  PACES = ["Relaxed", "Normal", "Power"]
7
  WEATHER_OVERRIDE = ["(auto)", "sunny", "cloudy", "rainy", "snowy"]
8
+ MODES = ["Auto (by weather)", "Walk", "Transit", "Drive/Taxi", "Mixed"]
9
 
10
  def build_ui():
11
  with gr.Row():
 
18
  budget_in = gr.Radio(BUDGETS, value="Medium", label="Budget")
19
  pace_in = gr.Radio(PACES, value="Normal", label="Pace")
20
  weather_in = gr.Dropdown(WEATHER_OVERRIDE, value="(auto)", label="Weather override")
21
+ mode_in = gr.Dropdown(MODES, value="Auto (by weather)", label="Mode preference")
22
+ show_costs_in = gr.Checkbox(label="Show cost estimate", value=True)
23
 
24
  with gr.Row():
25
  seed_btn = gr.Button("Seed sample data")
 
39
  pace_in,
40
  date_in,
41
  weather_in,
42
+ mode_in,
43
+ show_costs_in,
44
  build_btn,
45
  seed_btn,
46
  gen_btn,