Spaces:
Runtime error
Runtime error
kbberendsen
commited on
Commit
•
cb7b7fd
1
Parent(s):
163292a
Update app.py
Browse filesshow data loading notification at the top in the center
app.py
CHANGED
@@ -122,7 +122,11 @@ def server(input, output, session):
|
|
122 |
@reactive.Calc
|
123 |
def get_data_1():
|
124 |
try:
|
125 |
-
ui.
|
|
|
|
|
|
|
|
|
126 |
f1_session = ff1.get_session(int(input.year()), input.track_select(), input.session_type())
|
127 |
f1_session.load()
|
128 |
|
|
|
122 |
@reactive.Calc
|
123 |
def get_data_1():
|
124 |
try:
|
125 |
+
ui.div(
|
126 |
+
{"style": "position:fixed; left: calc(50% - 150px); top: 0"},
|
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()
|
132 |
|