deepkyu commited on
Commit
2551121
1 Parent(s): ed7e17c

get NotoSans file from local

Browse files
Files changed (2) hide show
  1. app.py +0 -3
  2. data/NotoSans.zip +3 -0
app.py CHANGED
@@ -15,15 +15,12 @@ PATH_DOCS = os.getenv("PATH_DOCS", default="docs/ml-font-style-transfer.md")
15
  MODEL_CONFIG = os.getenv("MODEL_CONFIG", default="config/models/google-font.yaml")
16
 
17
  MODEL_CHECKPOINT_PATH = os.getenv("MODEL_CHECKPOINT_PATH", default=None)
18
- NOTO_SANS_ZIP_PATH = os.getenv("NOTO_SANS_ZIP_PATH", default=None)
19
 
20
  LOCAL_CHECKPOINT_PATH = "checkpoint/checkpoint.ckpt"
21
  LOCAL_NOTO_ZIP_PATH = "data/NotoSans.zip"
22
 
23
  if MODEL_CHECKPOINT_PATH is not None:
24
  subprocess.call(f"wget --no-check-certificate -O {LOCAL_CHECKPOINT_PATH} {MODEL_CHECKPOINT_PATH}", shell=True)
25
- if NOTO_SANS_ZIP_PATH is not None:
26
- subprocess.call(f"wget --no-check-certificate -O {LOCAL_NOTO_ZIP_PATH} {NOTO_SANS_ZIP_PATH}", shell=True)
27
  subprocess.call(f"unzip data/NotoSans.zip -d {str(Path(LOCAL_NOTO_ZIP_PATH).parent)}", shell=True)
28
 
29
  assert Path("checkpoint/checkpoint.ckpt").exists()
 
15
  MODEL_CONFIG = os.getenv("MODEL_CONFIG", default="config/models/google-font.yaml")
16
 
17
  MODEL_CHECKPOINT_PATH = os.getenv("MODEL_CHECKPOINT_PATH", default=None)
 
18
 
19
  LOCAL_CHECKPOINT_PATH = "checkpoint/checkpoint.ckpt"
20
  LOCAL_NOTO_ZIP_PATH = "data/NotoSans.zip"
21
 
22
  if MODEL_CHECKPOINT_PATH is not None:
23
  subprocess.call(f"wget --no-check-certificate -O {LOCAL_CHECKPOINT_PATH} {MODEL_CHECKPOINT_PATH}", shell=True)
 
 
24
  subprocess.call(f"unzip data/NotoSans.zip -d {str(Path(LOCAL_NOTO_ZIP_PATH).parent)}", shell=True)
25
 
26
  assert Path("checkpoint/checkpoint.ckpt").exists()
data/NotoSans.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:944d061340bfc844dff56f4c9e29d6cf7185f4b3ea00b63f5a4b37a746b456c1
3
+ size 38088741