Spaces:
Runtime error
Runtime error
Update
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ import torch
|
|
7 |
|
8 |
from app_base import create_demo as create_demo_base
|
9 |
from app_sketch import create_demo as create_demo_sketch
|
10 |
-
from model import ADAPTER_NAMES, Model
|
11 |
|
12 |
DESCRIPTION = "# T2I-Adapter-SDXL"
|
13 |
|
@@ -15,6 +15,7 @@ if not torch.cuda.is_available():
|
|
15 |
DESCRIPTION += "\n<p>Running on CPU 🥶 This demo does not work on CPU.</p>"
|
16 |
|
17 |
|
|
|
18 |
model = Model(ADAPTER_NAMES[0])
|
19 |
|
20 |
|
|
|
7 |
|
8 |
from app_base import create_demo as create_demo_base
|
9 |
from app_sketch import create_demo as create_demo_sketch
|
10 |
+
from model import ADAPTER_NAMES, Model, download_all_adapters
|
11 |
|
12 |
DESCRIPTION = "# T2I-Adapter-SDXL"
|
13 |
|
|
|
15 |
DESCRIPTION += "\n<p>Running on CPU 🥶 This demo does not work on CPU.</p>"
|
16 |
|
17 |
|
18 |
+
download_all_adapters()
|
19 |
model = Model(ADAPTER_NAMES[0])
|
20 |
|
21 |
|
model.py
CHANGED
@@ -256,9 +256,6 @@ def download_all_adapters():
|
|
256 |
gc.collect()
|
257 |
|
258 |
|
259 |
-
download_all_adapters()
|
260 |
-
|
261 |
-
|
262 |
class Model:
|
263 |
MAX_NUM_INFERENCE_STEPS = 50
|
264 |
|
|
|
256 |
gc.collect()
|
257 |
|
258 |
|
|
|
|
|
|
|
259 |
class Model:
|
260 |
MAX_NUM_INFERENCE_STEPS = 50
|
261 |
|