Spaces:
Running
Running
admin
commited on
Commit
•
2d254f3
1
Parent(s):
e9222b3
Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,7 @@ import schedule
|
|
5 |
import gradio as gr
|
6 |
import pandas as pd
|
7 |
from tqdm import tqdm
|
|
|
8 |
from bs4 import BeautifulSoup
|
9 |
from urllib.parse import urlparse
|
10 |
|
@@ -184,7 +185,8 @@ def monitor(hf_users: str, ms_users: str, period=1):
|
|
184 |
return
|
185 |
|
186 |
print(f"监控开启中...每日触发")
|
187 |
-
|
|
|
188 |
while True:
|
189 |
schedule.run_pending()
|
190 |
time.sleep(DELAY)
|
|
|
5 |
import gradio as gr
|
6 |
import pandas as pd
|
7 |
from tqdm import tqdm
|
8 |
+
from functools import partial
|
9 |
from bs4 import BeautifulSoup
|
10 |
from urllib.parse import urlparse
|
11 |
|
|
|
185 |
return
|
186 |
|
187 |
print(f"监控开启中...每日触发")
|
188 |
+
fixed_activate = partial(activate, hf_users=hf_users, ms_users=ms_users)
|
189 |
+
schedule.every(period).days.do(fixed_activate)
|
190 |
while True:
|
191 |
schedule.run_pending()
|
192 |
time.sleep(DELAY)
|