Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,7 +28,7 @@ pipe = StableDiffusionXLControlNetPipeline.from_pretrained(
|
|
| 28 |
)
|
| 29 |
pipe.to("cuda")
|
| 30 |
|
| 31 |
-
custom_model = "fffiloni/
|
| 32 |
|
| 33 |
# This is where you load your trained weights
|
| 34 |
pipe.load_lora_weights(custom_model, weight_name="pytorch_lora_weights.safetensors", use_auth_token=True)
|
|
@@ -69,8 +69,8 @@ with gr.Blocks() as demo:
|
|
| 69 |
with gr.Column():
|
| 70 |
image_in = gr.Image(source="upload", type="filepath")
|
| 71 |
prompt = gr.Textbox(label="Prompt")
|
| 72 |
-
guidance_scale = gr.Slider(label="Guidance Scale", minimum=1.0, maximum=10.0, step=0.1, value=5
|
| 73 |
-
controlnet_conditioning_scale = gr.Slider(label="Controlnet conditioning Scale", minimum=0.
|
| 74 |
submit_btn = gr.Button("Submit")
|
| 75 |
result = gr.Image(label="Result")
|
| 76 |
|
|
|
|
| 28 |
)
|
| 29 |
pipe.to("cuda")
|
| 30 |
|
| 31 |
+
custom_model = "fffiloni/eugene_decors_jour"
|
| 32 |
|
| 33 |
# This is where you load your trained weights
|
| 34 |
pipe.load_lora_weights(custom_model, weight_name="pytorch_lora_weights.safetensors", use_auth_token=True)
|
|
|
|
| 69 |
with gr.Column():
|
| 70 |
image_in = gr.Image(source="upload", type="filepath")
|
| 71 |
prompt = gr.Textbox(label="Prompt")
|
| 72 |
+
guidance_scale = gr.Slider(label="Guidance Scale", minimum=1.0, maximum=10.0, step=0.1, value=7.5, type="float")
|
| 73 |
+
controlnet_conditioning_scale = gr.Slider(label="Controlnet conditioning Scale", minimum=0.1, maximum=0.9, step=0.01, value=0.5, type="float")
|
| 74 |
submit_btn = gr.Button("Submit")
|
| 75 |
result = gr.Image(label="Result")
|
| 76 |
|