akiyamasho commited on
Commit
bc89311
1 Parent(s): 954af45

MAINT: remove HF token

Browse files
Files changed (1) hide show
  1. app.py +4 -7
app.py CHANGED
@@ -21,9 +21,6 @@ logger = logging.getLogger(__name__)
21
 
22
  # Constants
23
 
24
-
25
- HF_TOKEN = os.getenv('HF_TOKEN')
26
-
27
  MAX_DIMENSION = 1280
28
  MODEL_PATH = "models"
29
  COLOUR_MODEL = "RGB"
@@ -42,10 +39,10 @@ MODEL_FILE_MIYAZAKI = "miyazaki_hayao.pth"
42
  MODEL_FILE_KON = "kon_satoshi.pth"
43
 
44
  # Model Initalisation
45
- shinkai_model_hfhub = hf_hub_download(repo_id=MODEL_REPO_ID, filename=MODEL_FILE_SHINKAI, use_auth_token=HF_TOKEN, force_download=True)
46
- hosoda_model_hfhub = hf_hub_download(repo_id=MODEL_REPO_ID, filename=MODEL_FILE_HOSODA, use_auth_token=HF_TOKEN, force_download=True)
47
- miyazaki_model_hfhub = hf_hub_download(repo_id=MODEL_REPO_ID, filename=MODEL_FILE_MIYAZAKI, use_auth_token=HF_TOKEN, force_download=True)
48
- kon_model_hfhub = hf_hub_download(repo_id=MODEL_REPO_ID, filename=MODEL_FILE_KON, use_auth_token=HF_TOKEN, force_download=True)
49
 
50
  shinkai_model = Transformer()
51
  hosoda_model = Transformer()
 
21
 
22
  # Constants
23
 
 
 
 
24
  MAX_DIMENSION = 1280
25
  MODEL_PATH = "models"
26
  COLOUR_MODEL = "RGB"
 
39
  MODEL_FILE_KON = "kon_satoshi.pth"
40
 
41
  # Model Initalisation
42
+ shinkai_model_hfhub = hf_hub_download(repo_id=MODEL_REPO_ID, filename=MODEL_FILE_SHINKAI)
43
+ hosoda_model_hfhub = hf_hub_download(repo_id=MODEL_REPO_ID, filename=MODEL_FILE_HOSODA)
44
+ miyazaki_model_hfhub = hf_hub_download(repo_id=MODEL_REPO_ID, filename=MODEL_FILE_MIYAZAKI)
45
+ kon_model_hfhub = hf_hub_download(repo_id=MODEL_REPO_ID, filename=MODEL_FILE_KON)
46
 
47
  shinkai_model = Transformer()
48
  hosoda_model = Transformer()