kingabzpro commited on
Commit
3bcfb9d
β€’
1 Parent(s): b901b90

Update Gradio/app.py

Browse files
Files changed (1) hide show
  1. Gradio/app.py +2 -1
Gradio/app.py CHANGED
@@ -12,12 +12,13 @@ hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN, "Urdu-ASR-flags")
12
 
13
  ############## DVC ################################
14
 
15
- Model = "/home/user/app/Model"
16
 
17
  if os.path.isdir(".dvc"):
18
  print("Running DVC")
19
  # os.system("dvc config cache.type copy")
20
  # os.system("dvc config core.no_scm true")
 
21
  if os.system(f"dvc pull {Model} -r origin") != 0:
22
  exit("dvc pull failed")
23
  # os.system("rm -r .dvc")
 
12
 
13
  ############## DVC ################################
14
 
15
+ Model = "Model"
16
 
17
  if os.path.isdir(".dvc"):
18
  print("Running DVC")
19
  # os.system("dvc config cache.type copy")
20
  # os.system("dvc config core.no_scm true")
21
+ os.system("git init")
22
  if os.system(f"dvc pull {Model} -r origin") != 0:
23
  exit("dvc pull failed")
24
  # os.system("rm -r .dvc")