Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ import torch
|
|
8 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
9 |
|
10 |
|
11 |
-
auth_token = os.
|
12 |
if not auth_token:
|
13 |
raise ValueError("Hugging Face token is missing! Add it as a secret.")
|
14 |
|
|
|
8 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
9 |
|
10 |
|
11 |
+
auth_token = os.environ.get("hf_token")
|
12 |
if not auth_token:
|
13 |
raise ValueError("Hugging Face token is missing! Add it as a secret.")
|
14 |
|