Spaces:
Running
Running
st
Browse files- app_streamlit.py +2 -2
app_streamlit.py
CHANGED
@@ -51,9 +51,9 @@ st.plotly_chart(fig)
|
|
51 |
|
52 |
HF_TOKEN = os.getenv("HF_TOKEN")
|
53 |
def restart():
|
54 |
-
restart_space("
|
55 |
|
56 |
time_start = datetime.now()
|
57 |
scheduler = BackgroundScheduler()
|
58 |
job = scheduler.add_job(restart, "interval", minutes=2)
|
59 |
-
scheduler.start()
|
|
|
51 |
|
52 |
HF_TOKEN = os.getenv("HF_TOKEN")
|
53 |
def restart():
|
54 |
+
restart_space("Robzy/hgb-weather", token=HF_TOKEN)
|
55 |
|
56 |
time_start = datetime.now()
|
57 |
scheduler = BackgroundScheduler()
|
58 |
job = scheduler.add_job(restart, "interval", minutes=2)
|
59 |
+
scheduler.start()
|