Spaces:
Sleeping
Sleeping
Update utils.py
Browse files
utils.py
CHANGED
@@ -10,8 +10,10 @@ import os
|
|
10 |
tqdm.pandas()
|
11 |
|
12 |
# Authentifizierung (stellen Sie sicher, dass Ihr Hugging Face Token gesetzt ist)
|
13 |
-
api = HfApi(
|
14 |
-
|
|
|
|
|
15 |
|
16 |
# Erstellen oder Klonen Sie ein Repository (wenn noch nicht vorhanden)
|
17 |
repo = Repository(local_dir="SpotifyHitPrediction", clone_from="Add1E/SpotifyHitPrediction")
|
|
|
10 |
tqdm.pandas()
|
11 |
|
12 |
# Authentifizierung (stellen Sie sicher, dass Ihr Hugging Face Token gesetzt ist)
|
13 |
+
api = HfApi(
|
14 |
+
endpoint="https://huggingface.co/spaces/Add1E/SpotifyHitPrediction"
|
15 |
+
token=os.getenv("token")
|
16 |
+
)
|
17 |
|
18 |
# Erstellen oder Klonen Sie ein Repository (wenn noch nicht vorhanden)
|
19 |
repo = Repository(local_dir="SpotifyHitPrediction", clone_from="Add1E/SpotifyHitPrediction")
|