Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ KNOWN_FACES_DIR = "known_faces"
|
|
10 |
os.makedirs(KNOWN_FACES_DIR, exist_ok=True)
|
11 |
|
12 |
# Retrieve the Hugging Face token from the environment
|
13 |
-
hf_token = os.getenv("
|
14 |
if not hf_token:
|
15 |
raise ValueError("Hugging Face token not found. Ensure it's set as a secret in the Hugging Face Space.")
|
16 |
|
|
|
10 |
os.makedirs(KNOWN_FACES_DIR, exist_ok=True)
|
11 |
|
12 |
# Retrieve the Hugging Face token from the environment
|
13 |
+
hf_token = os.getenv("upload") # Ensure the key matches the secret name
|
14 |
if not hf_token:
|
15 |
raise ValueError("Hugging Face token not found. Ensure it's set as a secret in the Hugging Face Space.")
|
16 |
|