navidved commited on
Commit
e06aafc
·
verified ·
1 Parent(s): f0a1a85

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -4,7 +4,10 @@ import json
4
  import pandas as pd
5
  from datasets import load_dataset, DatasetDict, Dataset, Audio
6
  from huggingface_hub import HfApi, whoami, login, hf_hub_download
7
- from huggingface_hub.utils._errors import HfHubHTTPError
 
 
 
8
  import tempfile
9
  import shutil
10
  import gc
 
4
  import pandas as pd
5
  from datasets import load_dataset, DatasetDict, Dataset, Audio
6
  from huggingface_hub import HfApi, whoami, login, hf_hub_download
7
+ try:
8
+ from huggingface_hub.utils import HfHubHTTPError # For newer versions
9
+ except ImportError:
10
+ from huggingface_hub.hf_api import HfHubHTTPError # For older versions (e.g., <0.5.0)
11
  import tempfile
12
  import shutil
13
  import gc