Spaces:
Runtime error
Runtime error
Ahmed Ahmed
commited on
Commit
·
de8f813
1
Parent(s):
24c8512
consolidate
Browse files
app.py
CHANGED
|
@@ -1,7 +1,8 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from gradio_leaderboard import Leaderboard
|
| 3 |
import pandas as pd
|
| 4 |
-
from huggingface_hub import snapshot_download, create_repo
|
|
|
|
| 5 |
import os
|
| 6 |
|
| 7 |
from src.about import (
|
|
@@ -55,7 +56,7 @@ try:
|
|
| 55 |
etag_timeout=30,
|
| 56 |
token=TOKEN
|
| 57 |
)
|
| 58 |
-
except
|
| 59 |
# Create the repository if it doesn't exist
|
| 60 |
print(f"Creating new results repository: {RESULTS_REPO}")
|
| 61 |
create_repo(
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from gradio_leaderboard import Leaderboard
|
| 3 |
import pandas as pd
|
| 4 |
+
from huggingface_hub import snapshot_download, create_repo
|
| 5 |
+
from huggingface_hub.utils import RepositoryNotFoundError
|
| 6 |
import os
|
| 7 |
|
| 8 |
from src.about import (
|
|
|
|
| 56 |
etag_timeout=30,
|
| 57 |
token=TOKEN
|
| 58 |
)
|
| 59 |
+
except RepositoryNotFoundError:
|
| 60 |
# Create the repository if it doesn't exist
|
| 61 |
print(f"Creating new results repository: {RESULTS_REPO}")
|
| 62 |
create_repo(
|