ldhldh commited on
Commit
2081073
ยท
1 Parent(s): 42f4878

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -6,6 +6,9 @@ from PIL import Image
6
  import copy
7
  import time
8
  from time import strftime, localtime
 
 
 
9
 
10
  sample_data = {
11
  "gpus" : {
@@ -291,3 +294,12 @@ st.bar_chart(call_data)
291
 
292
  st.title('Previous Blocks')
293
  st.table(pd.DataFrame(sample_data['chain']))
 
 
 
 
 
 
 
 
 
 
6
  import copy
7
  import time
8
  from time import strftime, localtime
9
+ from streamlit_js_eval import streamlit_js_eval
10
+
11
+ import schedule
12
 
13
  sample_data = {
14
  "gpus" : {
 
294
 
295
  st.title('Previous Blocks')
296
  st.table(pd.DataFrame(sample_data['chain']))
297
+
298
+
299
+
300
+
301
+ # step2.์‹คํ–‰ํ•  ํ•จ์ˆ˜ ์„ ์–ธ
302
+ def update():
303
+ streamlit_js_eval(js_expressions="parent.window.location.reload()")
304
+
305
+ schedule.every(60).seconds.do(update)