zlmqi commited on
Commit
fac2a29
1 Parent(s): 3b8a5dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -13,10 +13,11 @@
13
  import os
14
  from huggingface_hub import logging, login
15
 
16
- # the following code generates a runtime error after the HF security incident
17
  #login(token=os.environ.get("new_data_token"), write_permission=True)
18
  #login(token=os.environ.get("data_token")) # this is a new fine_grained token
19
- #login(token=os.getenv("data_token"))
 
20
 
21
  login(token=os.getenv("new_data_token"), write_permission=True)
22
  #logging.set_verbosity_debug()
 
13
  import os
14
  from huggingface_hub import logging, login
15
 
16
+ # The access token must be saved in the secrets of this space first
17
  #login(token=os.environ.get("new_data_token"), write_permission=True)
18
  #login(token=os.environ.get("data_token")) # this is a new fine_grained token
19
+
20
+ #login(token=os.getenv("data_token")) # this is a new fine_grained token
21
 
22
  login(token=os.getenv("new_data_token"), write_permission=True)
23
  #logging.set_verbosity_debug()