tung commited on
Commit
30fef7a
·
1 Parent(s): 69061f2

fix: remove outdated error type

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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, HfHubError, hf_hub_download
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 HfHubError:
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