Spaces:
Build error
Build error
encounter1997
commited on
Commit
·
38f80e4
1
Parent(s):
2a841b2
rm pdb
Browse files- gradio_demo/runner.py +0 -2
gradio_demo/runner.py
CHANGED
|
@@ -35,7 +35,6 @@ class Runner:
|
|
| 35 |
org_dir.mkdir(exist_ok=True)
|
| 36 |
print(f'https://huggingface.co/{base_model_id}')
|
| 37 |
if token == None:
|
| 38 |
-
subprocess.run(shlex.split(f'git init'), cwd=org_dir)
|
| 39 |
subprocess.run(shlex.split(f'git lfs install'), cwd=org_dir)
|
| 40 |
subprocess.run(shlex.split(
|
| 41 |
f'git lfs clone https://huggingface.co/{base_model_id}'),
|
|
@@ -90,7 +89,6 @@ class Runner:
|
|
| 90 |
output_dir.mkdir(parents=True, exist_ok=True)
|
| 91 |
|
| 92 |
config = OmegaConf.load('configs/black-swan.yaml')
|
| 93 |
-
import pdb; pdb.set_trace()
|
| 94 |
config.pretrained_model_path = self.download_base_model(model_path, token=input_token)
|
| 95 |
|
| 96 |
# we remove null-inversion & use fp16 for fast inference on web demo
|
|
|
|
| 35 |
org_dir.mkdir(exist_ok=True)
|
| 36 |
print(f'https://huggingface.co/{base_model_id}')
|
| 37 |
if token == None:
|
|
|
|
| 38 |
subprocess.run(shlex.split(f'git lfs install'), cwd=org_dir)
|
| 39 |
subprocess.run(shlex.split(
|
| 40 |
f'git lfs clone https://huggingface.co/{base_model_id}'),
|
|
|
|
| 89 |
output_dir.mkdir(parents=True, exist_ok=True)
|
| 90 |
|
| 91 |
config = OmegaConf.load('configs/black-swan.yaml')
|
|
|
|
| 92 |
config.pretrained_model_path = self.download_base_model(model_path, token=input_token)
|
| 93 |
|
| 94 |
# we remove null-inversion & use fp16 for fast inference on web demo
|