Spaces:
Runtime error
Runtime error
Yjiggfghhjnjj
commited on
Commit
•
5d5dce7
1
Parent(s):
c329200
Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ play_pipe = DiffusionPipeline.from_pretrained(
|
|
49 |
add_watermarker=False,
|
50 |
variant="fp16"
|
51 |
)
|
52 |
-
|
53 |
|
54 |
@spaces.GPU
|
55 |
def run_comparison(prompt: str,
|
@@ -183,10 +183,10 @@ with gr.Blocks() as demo:
|
|
183 |
gr.Markdown("## [RealVisXL V3](https://huggingface.co)")
|
184 |
with gr.Column():
|
185 |
image_r4 = gr.Gallery(label="RealVisXL V4",columns=1, preview=True,)
|
186 |
-
gr.Markdown("## [RealVisXL
|
187 |
with gr.Column():
|
188 |
-
play_pipe = gr.Gallery(label="
|
189 |
-
gr.Markdown("## [
|
190 |
image_outputs = [image_r3, image_r4, play_pipe]
|
191 |
gr.on(
|
192 |
triggers=[prompt.submit, run.click],
|
|
|
49 |
add_watermarker=False,
|
50 |
variant="fp16"
|
51 |
)
|
52 |
+
play_pipe.to("cuda")
|
53 |
|
54 |
@spaces.GPU
|
55 |
def run_comparison(prompt: str,
|
|
|
183 |
gr.Markdown("## [RealVisXL V3](https://huggingface.co)")
|
184 |
with gr.Column():
|
185 |
image_r4 = gr.Gallery(label="RealVisXL V4",columns=1, preview=True,)
|
186 |
+
gr.Markdown("## [RealVisXL V4](https://huggingface.co)")
|
187 |
with gr.Column():
|
188 |
+
play_pipe = gr.Gallery(label="Playground v2.5",columns=1, preview=True,)
|
189 |
+
gr.Markdown("## [Playground v2.5](https://huggingface.co)")
|
190 |
image_outputs = [image_r3, image_r4, play_pipe]
|
191 |
gr.on(
|
192 |
triggers=[prompt.submit, run.click],
|