kbberendsen commited on
Commit
38bec10
1 Parent(s): fb11f75

add selected to dropdown input

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -18,11 +18,10 @@ folder_name = 'cache'
18
  folder_path = current_directory / folder_name
19
 
20
  # Check if the folder exists
21
- if folder_path.is_dir():
22
- # Open the folder in the default file explorer of the operating system
23
- os.startfile(str(folder_path))
24
  else:
25
- print(f"The folder '{folder_name}' does not exist in the current directory.")
26
 
27
 
28
  script_dir = os.path.dirname(os.path.abspath(__file__))
@@ -38,7 +37,8 @@ app_ui = ui.page_fluid(
38
  ui.div(
39
  ui.input_select(
40
  "track", label="Track",
41
- choices=["Austria", "Hungary", "Spanish Grand Prix"]
 
42
  ),
43
  class_="d-flex gap-3"
44
  ),
 
18
  folder_path = current_directory / folder_name
19
 
20
  # Check if the folder exists
21
+ if folder_path.exists() and folder_path.is_dir():
22
+ print(f"The folder '{folder_name}' exists.")
 
23
  else:
24
+ print(f"The folder '{folder_name}' does not exist.")
25
 
26
 
27
  script_dir = os.path.dirname(os.path.abspath(__file__))
 
37
  ui.div(
38
  ui.input_select(
39
  "track", label="Track",
40
+ choices=["Austria", "Hungary", "Spanish Grand Prix"],
41
+ selected = "Austria"
42
  ),
43
  class_="d-flex gap-3"
44
  ),