Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,9 +15,9 @@ import PIL
|
|
15 |
model = whisper.load_model("base")
|
16 |
model.device
|
17 |
|
18 |
-
|
19 |
|
20 |
-
model_id = "TaiMingLu/diffusion-architecture"
|
21 |
|
22 |
scheduler = EulerDiscreteScheduler.from_pretrained(model_id, subfolder="scheduler")
|
23 |
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16) #pipe = StableDiffusionPipeline.from_pretrained(model_id , torch_dtype=torch.float16 #pipe = StableDiffusionPipeline.from_pretrained(model_id, scheduler=scheduler, revision="fp16", torch_dtype=torch.float16)
|
|
|
15 |
model = whisper.load_model("base")
|
16 |
model.device
|
17 |
|
18 |
+
model_id = 'prompthero/midjourney-v4-diffusion' #"stabilityai/stable-diffusion-2"
|
19 |
|
20 |
+
# model_id = "TaiMingLu/diffusion-architecture"
|
21 |
|
22 |
scheduler = EulerDiscreteScheduler.from_pretrained(model_id, subfolder="scheduler")
|
23 |
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16) #pipe = StableDiffusionPipeline.from_pretrained(model_id , torch_dtype=torch.float16 #pipe = StableDiffusionPipeline.from_pretrained(model_id, scheduler=scheduler, revision="fp16", torch_dtype=torch.float16)
|