Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -79,8 +79,19 @@ def infer(use_custom_model, model_name, image_in, prompt, preprocessor, controln
|
|
79 |
|
80 |
return f"result.png"
|
81 |
|
82 |
-
|
83 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
use_custom_model = gr.Checkbox(label="Use a custom model ?", value=False)
|
85 |
model_name = gr.Textbox(label="Model to use", placeholder="username/my_model")
|
86 |
image_in = gr.Image(source="upload", type="filepath")
|
|
|
79 |
|
80 |
return f"result.png"
|
81 |
|
82 |
+
css="""
|
83 |
+
#col-container{
|
84 |
+
margin: 0 auto;
|
85 |
+
max-width: 680;
|
86 |
+
}
|
87 |
+
"""
|
88 |
+
with gr.Blocks(css=css) as demo:
|
89 |
+
with gr.Column(elem_id="col-container"):
|
90 |
+
gr.Markdown("""
|
91 |
+
# SD-XL Control LoRas
|
92 |
+
Use StableDiffusion XL with ControlNet pretrained LoRas
|
93 |
+
|
94 |
+
""")
|
95 |
use_custom_model = gr.Checkbox(label="Use a custom model ?", value=False)
|
96 |
model_name = gr.Textbox(label="Model to use", placeholder="username/my_model")
|
97 |
image_in = gr.Image(source="upload", type="filepath")
|