RandomCatLover commited on
Commit
25e10f4
·
1 Parent(s): 492d9ca

fix models

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py CHANGED
@@ -28,6 +28,17 @@ if not os.path.exists(img_qua_path):
28
  except subprocess.CalledProcessError as e:
29
  print(f'Error cloning repository: {e.output.decode()}')
30
 
 
 
 
 
 
 
 
 
 
 
 
31
  from core.s import demo
32
 
33
  demo.queue(concurrency_count=3)
 
28
  except subprocess.CalledProcessError as e:
29
  print(f'Error cloning repository: {e.output.decode()}')
30
 
31
+ dest = 'melanoma_detection_model_registry'
32
+ if not os.path.exists(img_qua_path):
33
+ import subprocess
34
+ repo_url = 'https://huggingface.co/RandomCatLover/melanoma_detection_model_registry'
35
+ command = f'git clone {repo_url} {dest}'
36
+ try:
37
+ subprocess.check_output(command, stderr=subprocess.STDOUT, shell=True)#, env=env)
38
+ print('Repository cloned successfully.')
39
+ except subprocess.CalledProcessError as e:
40
+ print(f'Error cloning repository: {e.output.decode()}')
41
+
42
  from core.s import demo
43
 
44
  demo.queue(concurrency_count=3)