DeepMount00 commited on
Commit
7efa1e4
·
verified ·
1 Parent(s): 94fc7c9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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: