Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -194,19 +194,6 @@ model.load_state_dict(state_dict, strict=True)
|
|
194 |
|
195 |
model = model.to(device)
|
196 |
|
197 |
-
# # Load text-to-image model
|
198 |
-
# print('Loading text-to-image model ...')
|
199 |
-
|
200 |
-
# pipe = StableDiffusionXLPipeline.from_pretrained(
|
201 |
-
# "stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.bfloat16)
|
202 |
-
# pipe.to(device="cuda", dtype=torch.bfloat16)
|
203 |
-
|
204 |
-
# unet_state = load_file(hf_hub_download(
|
205 |
-
# "ByteDance/Hyper-SD", "Hyper-SDXL-1step-Unet.safetensors"), device="cuda")
|
206 |
-
# pipe.unet.load_state_dict(unet_state)
|
207 |
-
# pipe.scheduler = LCMScheduler.from_config(
|
208 |
-
# pipe.scheduler.config, timestep_spacing="trailing")
|
209 |
-
|
210 |
print('Carga Completa!')
|
211 |
|
212 |
# Gradio UI
|
|
|
194 |
|
195 |
model = model.to(device)
|
196 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
197 |
print('Carga Completa!')
|
198 |
|
199 |
# Gradio UI
|