Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,7 +25,7 @@ pipe = StableDiffusionXLPipeline.from_pretrained(
|
|
| 25 |
pipe = pipe.to(device)
|
| 26 |
|
| 27 |
# Download your DreamCartoonLora weights from Hugging Face and load them into the pipeline.
|
| 28 |
-
lora_path = hf_hub_download(repo_id="Leofreddare/
|
| 29 |
print("Loaded CartoonFaceLora from:", lora_path)
|
| 30 |
pipe.load_lora_weights(lora_path)
|
| 31 |
|
|
@@ -72,7 +72,7 @@ css = """
|
|
| 72 |
|
| 73 |
with gr.Blocks(css=css) as demo:
|
| 74 |
with gr.Column(elem_id="col-container"):
|
| 75 |
-
gr.Markdown("# Text-to-Image with
|
| 76 |
with gr.Row():
|
| 77 |
prompt = gr.Text(label="Prompt", show_label=False, max_lines=1, placeholder="Enter your prompt", container=False)
|
| 78 |
run_button = gr.Button("Run", scale=0, variant="primary")
|
|
|
|
| 25 |
pipe = pipe.to(device)
|
| 26 |
|
| 27 |
# Download your DreamCartoonLora weights from Hugging Face and load them into the pipeline.
|
| 28 |
+
lora_path = hf_hub_download(repo_id="Leofreddare/DreamCartoonLoraV2", filename="DreamCartoonLoraV2.safetensors")
|
| 29 |
print("Loaded CartoonFaceLora from:", lora_path)
|
| 30 |
pipe.load_lora_weights(lora_path)
|
| 31 |
|
|
|
|
| 72 |
|
| 73 |
with gr.Blocks(css=css) as demo:
|
| 74 |
with gr.Column(elem_id="col-container"):
|
| 75 |
+
gr.Markdown("# Text-to-Image with DreamCartoonLoraV2 on SDXL 1.0")
|
| 76 |
with gr.Row():
|
| 77 |
prompt = gr.Text(label="Prompt", show_label=False, max_lines=1, placeholder="Enter your prompt", container=False)
|
| 78 |
run_button = gr.Button("Run", scale=0, variant="primary")
|