Spaces:
Sleeping
Sleeping
tung
commited on
Commit
·
30fef7a
1
Parent(s):
69061f2
fix: remove outdated error type
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from pathlib import Path
|
|
5 |
|
6 |
import gradio as gr
|
7 |
import pandas as pd
|
8 |
-
from huggingface_hub import HfApi,
|
9 |
|
10 |
# ------------------------------------------------------------
|
11 |
# Cloud‑friendly Q/A preference rater for **Hugging Face Spaces**
|
@@ -78,7 +78,7 @@ def _download_remote_ratings() -> Path | None:
|
|
78 |
cache_dir=tempfile.gettempdir(),
|
79 |
)
|
80 |
)
|
81 |
-
except
|
82 |
# File/repo may not exist yet – caller will create empty DF.
|
83 |
return None
|
84 |
|
|
|
5 |
|
6 |
import gradio as gr
|
7 |
import pandas as pd
|
8 |
+
from huggingface_hub import HfApi, hf_hub_download
|
9 |
|
10 |
# ------------------------------------------------------------
|
11 |
# Cloud‑friendly Q/A preference rater for **Hugging Face Spaces**
|
|
|
78 |
cache_dir=tempfile.gettempdir(),
|
79 |
)
|
80 |
)
|
81 |
+
except Exception:
|
82 |
# File/repo may not exist yet – caller will create empty DF.
|
83 |
return None
|
84 |
|