Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -29,8 +29,6 @@ models = [
|
|
29 |
Model("SD21","models/stabilityai/stable-diffusion-2-1", "sd21 default style")
|
30 |
]
|
31 |
|
32 |
-
custom_model = "models/dreamlike-art/dreamlike-diffusion-1.0"
|
33 |
-
|
34 |
def selectModel(message):
|
35 |
message = message.lower()
|
36 |
for i in range(len(models)):
|
@@ -46,6 +44,7 @@ inputs_prompt = (gr.inputs.Textbox(label="Model"), gr.inputs.Textbox(label="Prom
|
|
46 |
|
47 |
sandbox = gr.Interface.load(
|
48 |
fn= selectModel,
|
|
|
49 |
inputs=inputs_prompt,
|
50 |
title=("""AlStable sandbox""","selectModel"),
|
51 |
description="""Demo for <a href="https://huggingface.co/stabilityai/stable-diffusion-2-1">AlStable</a> Stable Diffusion model.""",
|
|
|
29 |
Model("SD21","models/stabilityai/stable-diffusion-2-1", "sd21 default style")
|
30 |
]
|
31 |
|
|
|
|
|
32 |
def selectModel(message):
|
33 |
message = message.lower()
|
34 |
for i in range(len(models)):
|
|
|
44 |
|
45 |
sandbox = gr.Interface.load(
|
46 |
fn= selectModel,
|
47 |
+
name="models/dreamlike-art/dreamlike-diffusion-1.0",
|
48 |
inputs=inputs_prompt,
|
49 |
title=("""AlStable sandbox""","selectModel"),
|
50 |
description="""Demo for <a href="https://huggingface.co/stabilityai/stable-diffusion-2-1">AlStable</a> Stable Diffusion model.""",
|