Weyaxi commited on
Commit
4920c2a
·
1 Parent(s): 822e0d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -218,6 +218,7 @@ def get_ranking_trend(json_data, org_name):
218
  return {"id": "Not Found", "rank": "Not Found"}
219
 
220
  def restart_space():
 
221
  api.restart_space(repo_id="TFLai/organization-leaderboard", token=HF_TOKEN)
222
 
223
 
@@ -244,7 +245,7 @@ INTRODUCTION_TEXT = f"""
244
 
245
  **🌐 Note:** In the model's dataframe, there are some columns related to the [Open LLM Leaderboard](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard). This data is also retrieved through web scraping.
246
 
247
- **🌐 Note:** In trending models, first 300 models/datasets/spaces is being retrieved from huggingface.
248
 
249
  ## Last Update
250
 
@@ -288,5 +289,5 @@ with gr.Blocks() as demo:
288
 
289
 
290
  scheduler = BackgroundScheduler()
291
- scheduler.add_job(restart_space, "interval", seconds=21600)
292
  demo.launch()
 
218
  return {"id": "Not Found", "rank": "Not Found"}
219
 
220
  def restart_space():
221
+ print("Restarting...")
222
  api.restart_space(repo_id="TFLai/organization-leaderboard", token=HF_TOKEN)
223
 
224
 
 
245
 
246
  **🌐 Note:** In the model's dataframe, there are some columns related to the [Open LLM Leaderboard](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard). This data is also retrieved through web scraping.
247
 
248
+ **🌐 Note:** In trending models/datasets/spaces, first 300 models/datasets/spaces is being retrieved from huggingface.
249
 
250
  ## Last Update
251
 
 
289
 
290
 
291
  scheduler = BackgroundScheduler()
292
+ scheduler.add_job(restart_space, "interval", seconds=21600) # 6 hours
293
  demo.launch()