Spaces:
Runtime error
Runtime error
Commit
·
04425e9
1
Parent(s):
f6e4dc9
Update app.py
Browse files
app.py
CHANGED
@@ -105,16 +105,16 @@ with block:
|
|
105 |
)
|
106 |
btn = gr.Button("Generate image", scale=0)
|
107 |
|
108 |
-
# sd_options = gr.Dropdown(options, label="SD options")
|
109 |
-
sd_options = gr.Dropdown(options, value='SD1.4', label="SD options")
|
110 |
-
# model_id = "CompVis/stable-diffusion-v1-4"
|
111 |
|
112 |
-
if sd_options == 'SD1.4':
|
113 |
-
|
114 |
-
elif sd_options == 'SD1.5':
|
115 |
-
|
116 |
-
elif sd_options == 'SD2.1':
|
117 |
-
|
118 |
|
119 |
# pip_sd = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
120 |
# pip_sd = pip_sd.to("cuda")
|
|
|
105 |
)
|
106 |
btn = gr.Button("Generate image", scale=0)
|
107 |
|
108 |
+
# # sd_options = gr.Dropdown(options, label="SD options")
|
109 |
+
# sd_options = gr.Dropdown(options, value='SD1.4', label="SD options")
|
110 |
+
# # model_id = "CompVis/stable-diffusion-v1-4"
|
111 |
|
112 |
+
# if sd_options == 'SD1.4':
|
113 |
+
# model_id = "CompVis/stable-diffusion-v1-4"
|
114 |
+
# elif sd_options == 'SD1.5':
|
115 |
+
# model_id = "runwayml/stable-diffusion-v1-5"
|
116 |
+
# elif sd_options == 'SD2.1':
|
117 |
+
# model_id = "stabilityai/stable-diffusion-2-1"
|
118 |
|
119 |
# pip_sd = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
120 |
# pip_sd = pip_sd.to("cuda")
|