Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ import logging
|
|
10 |
from huggingface_hub import HfFolder
|
11 |
|
12 |
hf_token = os.getenv("API_KEY")
|
13 |
-
|
14 |
|
15 |
# If the key is found, use it to authenticate
|
16 |
if hf_token:
|
|
|
10 |
from huggingface_hub import HfFolder
|
11 |
|
12 |
hf_token = os.getenv("API_KEY")
|
13 |
+
DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
|
14 |
|
15 |
# If the key is found, use it to authenticate
|
16 |
if hf_token:
|