Robzy commited on
Commit
2f79ec1
·
1 Parent(s): 001026b

back to HF UI but with Streamlit

Browse files
Files changed (1) hide show
  1. app.py +1 -15
app.py CHANGED
@@ -8,23 +8,9 @@ st.subheader('Particle matter, diameter < 2.5 micrometers (PM2.5)')
8
  ### Load data
9
 
10
  import datetime
11
- import pandas as pd
12
  import hopsworks
13
- import datetime
14
  from functions import util
15
  import os
16
- import pandas as pd
17
- import modal
18
-
19
- app = modal.App('scheduler')
20
- volume = modal.Volume.from_name("my-volume")
21
-
22
- @app.function(schedule=modal.Period(seconds=10))
23
- def update():
24
- print('Updating...')
25
-
26
-
27
-
28
 
29
  if __name__ == "__main__":
30
  if "df" not in st.session_state:
@@ -34,4 +20,4 @@ if __name__ == "__main__":
34
  np.random.randn(20, 3),
35
  columns=['a', 'b', 'c'])
36
 
37
- st.line_chart(st.session_state.df)
 
8
  ### Load data
9
 
10
  import datetime
 
11
  import hopsworks
 
12
  from functions import util
13
  import os
 
 
 
 
 
 
 
 
 
 
 
 
14
 
15
  if __name__ == "__main__":
16
  if "df" not in st.session_state:
 
20
  np.random.randn(20, 3),
21
  columns=['a', 'b', 'c'])
22
 
23
+ st.line_chart(st.session_state.df)