NoCrypt commited on
Commit
b552f08
1 Parent(s): f94be0a

fix: dev to prod

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -6,7 +6,7 @@ import argparse
6
  import huggingface_hub
7
  import os
8
 
9
- # TOKEN = os.environ['TOKEN']
10
 
11
  def parse_args() -> argparse.Namespace:
12
  parser = argparse.ArgumentParser()
@@ -26,19 +26,19 @@ def main():
26
 
27
  # DL MODEL
28
  # PIX_MODEL
29
- # os.environ['PIX_MODEL'] = huggingface_hub.hf_hub_download("NoCrypt/pixelization_models", "pixelart_vgg19.pth", token=TOKEN);
30
- # # NET_MODEL
31
- # os.environ['NET_MODEL'] = huggingface_hub.hf_hub_download("NoCrypt/pixelization_models", "160_net_G_A.pth", token=TOKEN);
32
- # # ALIAS_MODEL
33
- # os.environ['ALIAS_MODEL'] = huggingface_hub.hf_hub_download("NoCrypt/pixelization_models", "alias_net.pth", token=TOKEN);
34
 
35
  # For local testing
36
  # PIX_MODEL
37
- os.environ['PIX_MODEL'] = "pixelart_vgg19.pth"
38
- # NET_MODEL
39
- os.environ['NET_MODEL'] = "160_net_G_A.pth"
40
- # ALIAS_MODEL
41
- os.environ['ALIAS_MODEL'] = "alias_net.pth"
42
 
43
 
44
  use_cpu = True
 
6
  import huggingface_hub
7
  import os
8
 
9
+ TOKEN = os.environ['TOKEN']
10
 
11
  def parse_args() -> argparse.Namespace:
12
  parser = argparse.ArgumentParser()
 
26
 
27
  # DL MODEL
28
  # PIX_MODEL
29
+ os.environ['PIX_MODEL'] = huggingface_hub.hf_hub_download("NoCrypt/pixelization_models", "pixelart_vgg19.pth", token=TOKEN);
30
+ # NET_MODEL
31
+ os.environ['NET_MODEL'] = huggingface_hub.hf_hub_download("NoCrypt/pixelization_models", "160_net_G_A.pth", token=TOKEN);
32
+ # ALIAS_MODEL
33
+ os.environ['ALIAS_MODEL'] = huggingface_hub.hf_hub_download("NoCrypt/pixelization_models", "alias_net.pth", token=TOKEN);
34
 
35
  # For local testing
36
  # PIX_MODEL
37
+ # os.environ['PIX_MODEL'] = "pixelart_vgg19.pth"
38
+ # # NET_MODEL
39
+ # os.environ['NET_MODEL'] = "160_net_G_A.pth"
40
+ # # ALIAS_MODEL
41
+ # os.environ['ALIAS_MODEL'] = "alias_net.pth"
42
 
43
 
44
  use_cpu = True