Spaces:
Runtime error
Runtime error
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -22,14 +22,24 @@ from huggingface_hub import snapshot_download
|
|
| 22 |
root = pathlib.Path(__file__).parent
|
| 23 |
example_root = os.path.join(root, 'examples')
|
| 24 |
ckpt_root = os.path.join(root, 'stablediffusion')
|
| 25 |
-
if not CHECKPOINTS_PATH.exists():
|
| 26 |
-
snapshot_download(repo_id="ironjr/LucidDreamerDemo", repo_type="model", local_dir=example_root)
|
| 27 |
-
snapshot_download(repo_id="ironjr/BlazingDriveV11m", repo_type="model", local_dir=os.path.join(ckpt_root, 'Blazing Drive V11m'))
|
| 28 |
-
snapshot_download(repo_id="ironjr/RealCartoon-PixarV5", repo_type="model", local_dir=os.path.join(ckpt_root, 'RealCartoon-Pixar V5'))
|
| 29 |
-
snapshot_download(repo_id="ironjr/RealisticVisionV5-1", repo_type="model", local_dir=os.path.join(ckpt_root, 'Realistic Vision V5.1'))
|
| 30 |
-
snapshot_download(repo_id="runwayml/stable-diffusion-inpainting", repo_type="model", local_dir=os.path.join(ckpt_root, 'SD1-5'))
|
| 31 |
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
import simple_knn
|
| 34 |
except ModuleNotFoundError:
|
| 35 |
subprocess.run(shlex.split('python setup.py install'), cwd=os.path.join(root, 'submodules', 'simple-knn'))
|
|
|
|
| 22 |
root = pathlib.Path(__file__).parent
|
| 23 |
example_root = os.path.join(root, 'examples')
|
| 24 |
ckpt_root = os.path.join(root, 'stablediffusion')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
+
d = example_root
|
| 27 |
+
if not os.path.exists(d):
|
| 28 |
+
snapshot_download(repo_id="ironjr/LucidDreamerDemo", repo_type="model", local_dir=d)
|
| 29 |
+
d = os.path.join(ckpt_root, 'Blazing Drive V11m')
|
| 30 |
+
if not os.path.exists(d):
|
| 31 |
+
snapshot_download(repo_id="ironjr/BlazingDriveV11m", repo_type="model", local_dir=d)
|
| 32 |
+
d = os.path.join(ckpt_root, 'RealCartoon-Pixar V5')
|
| 33 |
+
if not os.path.exists(d):
|
| 34 |
+
snapshot_download(repo_id="ironjr/RealCartoon-PixarV5", repo_type="model", local_dir=d)
|
| 35 |
+
d = os.path.join(ckpt_root, 'Realistic Vision V5.1')
|
| 36 |
+
if not os.path.exists(d):
|
| 37 |
+
snapshot_download(repo_id="ironjr/RealisticVisionV5-1", repo_type="model", local_dir=d)
|
| 38 |
+
d = os.path.join(ckpt_root, 'SD1-5')
|
| 39 |
+
if not os.path.exists(d):
|
| 40 |
+
snapshot_download(repo_id="runwayml/stable-diffusion-inpainting", repo_type="model", local_dir=d)
|
| 41 |
+
|
| 42 |
+
try
|
| 43 |
import simple_knn
|
| 44 |
except ModuleNotFoundError:
|
| 45 |
subprocess.run(shlex.split('python setup.py install'), cwd=os.path.join(root, 'submodules', 'simple-knn'))
|