Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ resolution = 512
|
|
14 |
# checkpoint of the converted Stable Diffusion from KerasCV
|
15 |
model_ckpt = "nielsgl/dreambooth-bored-ape"
|
16 |
pipeline = StableDiffusionPipeline.from_pretrained(model_ckpt)
|
17 |
-
pipeline.to("cuda")
|
18 |
|
19 |
unique_id = "drawbayc"
|
20 |
class_label = "monkey"
|
@@ -106,7 +106,7 @@ with gr.Blocks() as demo:
|
|
106 |
output = gr.Gallery(label="Outputs").style(grid=(1,2))
|
107 |
prompt_btn.click(infer, inputs=[prompt_pos, prompt_neg, prompt_gs, prompt_steps], outputs=[output])
|
108 |
with gr.Row():
|
109 |
-
gr.Examples(examples, inputs=[prompt_pos, prompt_neg, prompt_gs, prompt_steps], outputs=output, fn=infer)
|
110 |
with gr.Row():
|
111 |
with gr.Column():
|
112 |
gr.Markdown(model_card_2)
|
|
|
14 |
# checkpoint of the converted Stable Diffusion from KerasCV
|
15 |
model_ckpt = "nielsgl/dreambooth-bored-ape"
|
16 |
pipeline = StableDiffusionPipeline.from_pretrained(model_ckpt)
|
17 |
+
# pipeline.to("cuda")
|
18 |
|
19 |
unique_id = "drawbayc"
|
20 |
class_label = "monkey"
|
|
|
106 |
output = gr.Gallery(label="Outputs").style(grid=(1,2))
|
107 |
prompt_btn.click(infer, inputs=[prompt_pos, prompt_neg, prompt_gs, prompt_steps], outputs=[output])
|
108 |
with gr.Row():
|
109 |
+
gr.Examples(examples, inputs=[prompt_pos, prompt_neg, prompt_gs, prompt_steps], outputs=output, fn=infer, cache_examples=True)
|
110 |
with gr.Row():
|
111 |
with gr.Column():
|
112 |
gr.Markdown(model_card_2)
|