Abid commited on
Commit
a770601
·
1 Parent(s): 5f32f95

DVC added and working webapp with inference

Browse files
Files changed (2) hide show
  1. app/Aptfile → Aptfile +0 -0
  2. app/app_savta.py +7 -7
app/Aptfile → Aptfile RENAMED
File without changes
app/app_savta.py CHANGED
@@ -11,13 +11,13 @@ PROD_MODEL_PATH = "src/models"
11
  TRAIN_PATH = "src/data/processed/train/bathroom"
12
  TEST_PATH = "src/data/processed/test/bathroom"
13
 
14
- #if "DYNO" in os.environ and os.path.isdir(".dvc"):
15
- # print("Running DVC")
16
- # os.system("dvc config cache.type copy")
17
- # os.system("dvc config core.no_scm true")
18
- # if os.system(f"dvc pull {PROD_MODEL_PATH} {TRAIN_PATH } {TEST_PATH }") != 0:
19
- # exit("dvc pull failed")
20
- # os.system("rm -r .dvc")
21
  # .apt/usr/lib/dvc
22
 
23
  ############## Inference ##############################
 
11
  TRAIN_PATH = "src/data/processed/train/bathroom"
12
  TEST_PATH = "src/data/processed/test/bathroom"
13
 
14
+ if "DYNO" in os.environ and os.path.isdir(".dvc"):
15
+ print("Running DVC")
16
+ os.system("dvc config cache.type copy")
17
+ os.system("dvc config core.no_scm true")
18
+ if os.system(f"dvc pull {PROD_MODEL_PATH} {TRAIN_PATH } {TEST_PATH }") != 0:
19
+ exit("dvc pull failed")
20
+ os.system("rm -r .dvc")
21
  # .apt/usr/lib/dvc
22
 
23
  ############## Inference ##############################