kingabzpro commited on
Commit
350c5f7
β€’
1 Parent(s): 1675e5a

Update Gradio/app.py

Browse files
Files changed (1) hide show
  1. Gradio/app.py +3 -10
Gradio/app.py CHANGED
@@ -10,19 +10,12 @@ HF_TOKEN = os.getenv("HF_TOKEN")
10
 
11
  hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN, "Urdu-ASR-flags")
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")
25
- # .apt/usr/lib/dvc
26
 
27
  ############## Inference ##############################
28
 
 
10
 
11
  hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN, "Urdu-ASR-flags")
12
 
13
+ ############## DagsHub ################################
14
 
15
  Model = "Model"
16
 
17
+ from dagshub.streaming import install_hooks
18
+ install_hooks()
 
 
 
 
 
 
 
19
 
20
  ############## Inference ##############################
21