kbberendsen commited on
Commit
147b75e
1 Parent(s): 9dab9d4

Update app.py

Browse files

use external css style sheet

Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -37,6 +37,7 @@ drivers_2022 = {'Fastest driver': 'Fastest driver', 'VER': 'Max Verstappen',
37
  'LAT': 'Nicolas Latifi'}
38
 
39
  app_ui = ui.page_fluid(
 
40
  shinyswatch.theme.minty(),
41
  ui.panel_title("Gear usage in fastest lap"),
42
  ui.layout_sidebar(
@@ -122,10 +123,7 @@ def server(input, output, session):
122
  @reactive.Calc
123
  def get_data_1():
124
  try:
125
- ui.div(
126
- {"style": "position: fixed; left: calc(50%);"},
127
- ui.notification_show("Data takes a couple seconds to load.", duration=3, type = 'default'),
128
- )
129
 
130
  f1_session = ff1.get_session(int(input.year()), input.track_select(), input.session_type())
131
  f1_session.load()
 
37
  'LAT': 'Nicolas Latifi'}
38
 
39
  app_ui = ui.page_fluid(
40
+ ui.include_css("my_styles.css"),
41
  shinyswatch.theme.minty(),
42
  ui.panel_title("Gear usage in fastest lap"),
43
  ui.layout_sidebar(
 
123
  @reactive.Calc
124
  def get_data_1():
125
  try:
126
+ ui.notification_show("Data takes a couple seconds to load.", duration=3, type = 'default')
 
 
 
127
 
128
  f1_session = ff1.get_session(int(input.year()), input.track_select(), input.session_type())
129
  f1_session.load()