wanghaofan commited on
Commit
c810d3b
1 Parent(s): bbfe670

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -13,6 +13,10 @@ import copy
13
  import random
14
  import time
15
 
 
 
 
 
16
  # Load LoRAs from JSON file
17
  with open('loras.json', 'r') as f:
18
  loras = json.load(f)
 
13
  import random
14
  import time
15
 
16
+ from huggingface_hub import login
17
+ hf_token = os.environ.get("HF_TOKEN_GATED")
18
+ login(token=hf_token)
19
+
20
  # Load LoRAs from JSON file
21
  with open('loras.json', 'r') as f:
22
  loras = json.load(f)