JVice commited on
Commit
e3b5c5e
1 Parent(s): fe48a7d

added hf login

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -11,7 +11,9 @@ import tab_manager
11
  import yaml
12
  from yaml.loader import SafeLoader
13
  from PIL import Image
14
- from huggingface_hub import CommitScheduler
 
 
15
 
16
  AUTHENTICATOR = None
17
  TBYB_LOGO = Image.open('./assets/TBYB_logo_light.png')
 
11
  import yaml
12
  from yaml.loader import SafeLoader
13
  from PIL import Image
14
+ from huggingface_hub import CommitScheduler, login
15
+
16
+ login(token=os.environ.get("HF_TOKEN"), write_permission=True)
17
 
18
  AUTHENTICATOR = None
19
  TBYB_LOGO = Image.open('./assets/TBYB_logo_light.png')