Spaces:
Runtime error
Runtime error
darkstorm2150
commited on
Commit
•
90f9f38
1
Parent(s):
07d5f81
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ MODELS = {m.name: m for m in models}
|
|
42 |
device = "GPU 🔥" if torch.cuda.is_available() else "CPU 🥶"
|
43 |
|
44 |
def get_model(name):
|
45 |
-
|
46 |
|
47 |
if model.pipe_t2i is None:
|
48 |
model.pip_t2i = StableDiffusionPipeline.from_pretrained(
|
|
|
42 |
device = "GPU 🔥" if torch.cuda.is_available() else "CPU 🥶"
|
43 |
|
44 |
def get_model(name):
|
45 |
+
model = MODELS[name]
|
46 |
|
47 |
if model.pipe_t2i is None:
|
48 |
model.pip_t2i = StableDiffusionPipeline.from_pretrained(
|