Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -250,6 +250,7 @@ dtype = torch.float16 if device.type == "cuda" else torch.float32
|
|
250 |
# Load primary model (RealVisXL_V5.0_Lightning)
|
251 |
if torch.cuda.is_available():
|
252 |
pipe = StableDiffusionXLPipeline.from_pretrained(
|
|
|
253 |
"SG161222/RealVisXL_V5.0_Lightning",
|
254 |
torch_dtype=dtype,
|
255 |
use_safetensors=True,
|
@@ -270,7 +271,8 @@ if torch.cuda.is_available():
|
|
270 |
|
271 |
# Load second model (RealVisXL_V4.0)
|
272 |
pipe2 = StableDiffusionXLPipeline.from_pretrained(
|
273 |
-
"SG161222/RealVisXL_V4.0",
|
|
|
274 |
torch_dtype=dtype,
|
275 |
use_safetensors=True,
|
276 |
add_watermarker=False,
|
@@ -441,7 +443,7 @@ h1 {
|
|
441 |
}
|
442 |
'''
|
443 |
|
444 |
-
title = """<h1 align="center">IMAGINEO 4K : SDXL
|
445 |
<p><center>
|
446 |
<a href="https://huggingface.co/SG161222/RealVisXL_V4.0_Lightning" target="_blank">[Lightning 4]</a>
|
447 |
<a href="https://huggingface.co/SG161222/RealVisXL_V5.0_Lightning" target="_blank">[Lightning 5]</a>
|
@@ -460,7 +462,7 @@ with gr.Blocks(theme="YTheme/Minecraft", css=css) as demo:
|
|
460 |
placeholder="Enter your prompt",
|
461 |
container=False,
|
462 |
)
|
463 |
-
run_button = gr.Button("Generate Image
|
464 |
|
465 |
with gr.Row(visible=True):
|
466 |
model_selection = gr.Dropdown(
|
|
|
250 |
# Load primary model (RealVisXL_V5.0_Lightning)
|
251 |
if torch.cuda.is_available():
|
252 |
pipe = StableDiffusionXLPipeline.from_pretrained(
|
253 |
+
#"SG161222/RealVisXL_V5.0",
|
254 |
"SG161222/RealVisXL_V5.0_Lightning",
|
255 |
torch_dtype=dtype,
|
256 |
use_safetensors=True,
|
|
|
271 |
|
272 |
# Load second model (RealVisXL_V4.0)
|
273 |
pipe2 = StableDiffusionXLPipeline.from_pretrained(
|
274 |
+
#"SG161222/RealVisXL_V4.0",
|
275 |
+
"SG161222/RealVisXL_V4.0_Lightning",
|
276 |
torch_dtype=dtype,
|
277 |
use_safetensors=True,
|
278 |
add_watermarker=False,
|
|
|
443 |
}
|
444 |
'''
|
445 |
|
446 |
+
title = """<h1 align="center">IMAGINEO 4K : SDXL🔥</h1>
|
447 |
<p><center>
|
448 |
<a href="https://huggingface.co/SG161222/RealVisXL_V4.0_Lightning" target="_blank">[Lightning 4]</a>
|
449 |
<a href="https://huggingface.co/SG161222/RealVisXL_V5.0_Lightning" target="_blank">[Lightning 5]</a>
|
|
|
462 |
placeholder="Enter your prompt",
|
463 |
container=False,
|
464 |
)
|
465 |
+
run_button = gr.Button("Generate Image ( 1024 x 1024 ) 🧤", scale=0)
|
466 |
|
467 |
with gr.Row(visible=True):
|
468 |
model_selection = gr.Dropdown(
|