VinayHajare commited on
Commit
bb883c8
·
verified ·
1 Parent(s): e14bd4d

Update inference.py

Browse files
Files changed (1) hide show
  1. inference.py +4 -0
inference.py CHANGED
@@ -14,6 +14,10 @@ from model import NetG, CLIP_TXT_ENCODER
14
 
15
  # checking the device
16
  device = 'cuda:0' if torch.cuda.is_available() else 'cpu'
 
 
 
 
17
  # repositiory of the model
18
  repo_id = "VinayHajare/EfficientCLIP-GAN"
19
  file_name = "saved_models/state_epoch_120.pth"
 
14
 
15
  # checking the device
16
  device = 'cuda:0' if torch.cuda.is_available() else 'cpu'
17
+
18
+ # Getting the HF token
19
+ HF_TOKEN = os.getenv("HF_TOKEN")
20
+
21
  # repositiory of the model
22
  repo_id = "VinayHajare/EfficientCLIP-GAN"
23
  file_name = "saved_models/state_epoch_120.pth"