Spaces:
Paused
Paused
Abid
commited on
Commit
·
998456b
1
Parent(s):
a5f7c39
DVC added and working webapp with inference
Browse files- app/app_savta.py +3 -3
app/app_savta.py
CHANGED
@@ -17,8 +17,8 @@ if "DYNO" in os.environ and os.path.isdir(".dvc"):
|
|
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 |
-
|
22 |
|
23 |
############## Inference ##############################
|
24 |
|
@@ -75,7 +75,7 @@ def sepia(input_img):
|
|
75 |
def main():
|
76 |
iface = gr.Interface(sepia, gr.inputs.Image(shape=(640,480),type='numpy'), "image", title = title, description = description, article = article, examples = examples,theme ="peach",thumbnail=thumbnail)
|
77 |
|
78 |
-
iface.launch(favicon_path=favicon,server_name="0.0.0.0"
|
79 |
# enable_queue=True,auth=("admin", "pass1234")
|
80 |
|
81 |
if __name__ == '__main__':
|
|
|
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 ##############################
|
24 |
|
|
|
75 |
def main():
|
76 |
iface = gr.Interface(sepia, gr.inputs.Image(shape=(640,480),type='numpy'), "image", title = title, description = description, article = article, examples = examples,theme ="peach",thumbnail=thumbnail)
|
77 |
|
78 |
+
iface.launch(favicon_path=favicon,server_name="0.0.0.0")
|
79 |
# enable_queue=True,auth=("admin", "pass1234")
|
80 |
|
81 |
if __name__ == '__main__':
|