Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,8 +8,9 @@ import time
|
|
| 8 |
from time import strftime, localtime
|
| 9 |
from streamlit_js_eval import streamlit_js_eval
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
|
|
|
| 13 |
sample_data = {
|
| 14 |
"gpus" : {
|
| 15 |
"Alice" : 32,
|
|
@@ -295,11 +296,3 @@ st.bar_chart(call_data)
|
|
| 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)
|
|
|
|
| 8 |
from time import strftime, localtime
|
| 9 |
from streamlit_js_eval import streamlit_js_eval
|
| 10 |
|
| 11 |
+
if st.button("Reload page"):
|
| 12 |
+
streamlit_js_eval(js_expressions="parent.window.location.reload()")
|
| 13 |
+
|
| 14 |
sample_data = {
|
| 15 |
"gpus" : {
|
| 16 |
"Alice" : 32,
|
|
|
|
| 296 |
st.title('Previous Blocks')
|
| 297 |
st.table(pd.DataFrame(sample_data['chain']))
|
| 298 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|