Spaces:
Runtime error
Runtime error
Abid
commited on
Commit
β’
d99ef6c
1
Parent(s):
0a17281
Dvc prob 1
Browse files- Gradio/app.py +5 -5
Gradio/app.py
CHANGED
@@ -11,15 +11,15 @@ hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN, "Urdu-ASR-flags")
|
|
11 |
|
12 |
############## DVC ################################
|
13 |
|
14 |
-
PROD_MODEL_PATH = "
|
15 |
|
16 |
if os.path.isdir(".dvc"):
|
17 |
print("Running DVC")
|
18 |
-
os.system("dvc config cache.type copy")
|
19 |
-
os.system("dvc config core.no_scm true")
|
20 |
-
if os.system(f"dvc pull {PROD_MODEL_PATH}") != 0:
|
21 |
exit("dvc pull failed")
|
22 |
-
os.system("rm -r .dvc")
|
23 |
# .apt/usr/lib/dvc
|
24 |
|
25 |
############## Inference ##############################
|
11 |
|
12 |
############## DVC ################################
|
13 |
|
14 |
+
PROD_MODEL_PATH = "Model"
|
15 |
|
16 |
if os.path.isdir(".dvc"):
|
17 |
print("Running DVC")
|
18 |
+
# os.system("dvc config cache.type copy")
|
19 |
+
# os.system("dvc config core.no_scm true")
|
20 |
+
if os.system(f"dvc pull {PROD_MODEL_PATH} -r origin") != 0:
|
21 |
exit("dvc pull failed")
|
22 |
+
# os.system("rm -r .dvc")
|
23 |
# .apt/usr/lib/dvc
|
24 |
|
25 |
############## Inference ##############################
|