fahadqazi commited on
Commit
7d46111
·
verified ·
1 Parent(s): 88b65df

Update app.py

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