Spaces:
Running
on
Zero
Running
on
Zero
zixinz
commited on
Commit
·
a63b67d
1
Parent(s):
2f713b7
chore: ignore pyc and __pycache__
Browse files
app.py
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import os
|
| 2 |
import sys
|
| 3 |
import pathlib
|
|
|
|
| 1 |
+
|
| 2 |
+
import sys, pathlib
|
| 3 |
+
BASE_DIR = pathlib.Path(__file__).resolve().parent
|
| 4 |
+
LOCAL_DIFFUSERS_SRC = BASE_DIR / "code_edit" / "diffusers" / "src"
|
| 5 |
+
|
| 6 |
+
if (LOCAL_DIFFUSERS_SRC / "diffusers").exists():
|
| 7 |
+
sys.path.insert(0, str(LOCAL_DIFFUSERS_SRC))
|
| 8 |
+
else:
|
| 9 |
+
raise RuntimeError(f"Local diffusers not found at: {LOCAL_DIFFUSERS_SRC}")
|
| 10 |
+
|
| 11 |
+
from diffusers.pipelines.flux.pipeline_flux_fill_unmasked_image_condition_version import (
|
| 12 |
+
FluxFillPipeline_token12_depth_only as FluxFillPipeline,
|
| 13 |
+
)
|
| 14 |
+
|
| 15 |
import os
|
| 16 |
import sys
|
| 17 |
import pathlib
|