Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -20,32 +20,21 @@ fs = HfFileSystem()
|
|
20 |
def refresh(how_much=3600): # default to 1 hour
|
21 |
time.sleep(how_much)
|
22 |
try:
|
23 |
-
api.restart_space(repo_id="
|
24 |
except Exception as e:
|
25 |
print(f"Error while scraping leaderboard, trying again... {e}")
|
26 |
refresh(600) # 10 minutes if any error happens
|
27 |
|
28 |
gradio_title="🧐 Open Portuguese LLM Leaderboard Results PR Opener"
|
29 |
-
gradio_desc= """
|
30 |
-
This a fork of the [🧐 Open LLM Leaderboard Results PR Opener
|
31 |
-
](https://huggingface.co/spaces/Weyaxi/leaderboard-results-to-modelcard) from [@Weyaxi](https://huggingface.co/Weyaxi) modfied to work with the [Open Portuguese LLM Leaderboard](https://huggingface.co/spaces/eduagarcia/open_pt_llm_leaderboard).
|
32 |
-
🎯 This tool's aim is to provide [Open Portuguese LLM Leaderboard](https://huggingface.co/spaces/eduagarcia/open_pt_llm_leaderboard) results in the model card.
|
33 |
-
|
34 |
## 💭 What Does This Tool Do:
|
35 |
-
|
36 |
-
- This tool adds the [Open Portuguese LLM Leaderboard](https://huggingface.co/spaces/eduagarcia/open_pt_llm_leaderboard) result of your model at the end of your model card.
|
37 |
-
|
38 |
- This tool also adds evaluation results as your model's metadata to showcase the evaluation results as a widget.
|
39 |
-
|
40 |
## 🛠️ Backend
|
41 |
-
|
42 |
The leaderboard's backend mainly runs on the [Hugging Face Hub API](https://huggingface.co/docs/huggingface_hub/v0.5.1/en/package_reference/hf_api).
|
43 |
-
|
44 |
## 🤝 Acknowledgements
|
45 |
-
|
46 |
-
-
|
47 |
-
](https://huggingface.co/spaces/Weyaxi/leaderboard-results-to-modelcard) tool.
|
48 |
-
|
49 |
"""
|
50 |
|
51 |
with gr.Blocks() as demo:
|
|
|
20 |
def refresh(how_much=3600): # default to 1 hour
|
21 |
time.sleep(how_much)
|
22 |
try:
|
23 |
+
api.restart_space(repo_id="Abhaykoul/portuguese-leaderboard-results-to-modelcard")
|
24 |
except Exception as e:
|
25 |
print(f"Error while scraping leaderboard, trying again... {e}")
|
26 |
refresh(600) # 10 minutes if any error happens
|
27 |
|
28 |
gradio_title="🧐 Open Portuguese LLM Leaderboard Results PR Opener"
|
29 |
+
gradio_desc= """🎯 This tool's aim is to provide [Open LLM Leaderboard](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard) results in the model card.
|
|
|
|
|
|
|
|
|
30 |
## 💭 What Does This Tool Do:
|
31 |
+
- This tool adds the [Open LLM Leaderboard](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard) result of your model at the end of your model card.
|
|
|
|
|
32 |
- This tool also adds evaluation results as your model's metadata to showcase the evaluation results as a widget.
|
|
|
33 |
## 🛠️ Backend
|
|
|
34 |
The leaderboard's backend mainly runs on the [Hugging Face Hub API](https://huggingface.co/docs/huggingface_hub/v0.5.1/en/package_reference/hf_api).
|
|
|
35 |
## 🤝 Acknowledgements
|
36 |
+
- Special thanks to [Clémentine Fourrier (clefourrier)](https://huggingface.co/clefourrier) for her help and contributions to the code.
|
37 |
+
- Special thanks to [Lucain Pouget (Wauplin)](https://huggingface.co/Wauplin) for assisting with the [Hugging Face Hub API](https://huggingface.co/docs/huggingface_hub/v0.5.1/en/package_reference/hf_api).
|
|
|
|
|
38 |
"""
|
39 |
|
40 |
with gr.Blocks() as demo:
|