Spaces:
Running
on
Zero
Running
on
Zero
Yardenfren
commited on
Commit
•
c316620
1
Parent(s):
34e63ce
Update app_inference.py
Browse files- app_inference.py +8 -2
app_inference.py
CHANGED
@@ -33,6 +33,12 @@ body {
|
|
33 |
font-size: 250%;
|
34 |
}
|
35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
.gr-image {
|
37 |
width: 512px;
|
38 |
height: 512px;
|
@@ -157,14 +163,14 @@ with gr.Blocks(css=css) as demo:
|
|
157 |
with gr.Row(elem_classes="gr-row"):
|
158 |
with gr.Column():
|
159 |
with gr.Group(elem_classes="lora-column"):
|
160 |
-
gr.
|
161 |
content_checkbox = gr.Checkbox(label='Use Content Only', value=False)
|
162 |
content_lora_model_id = gr.Dropdown(label='Model ID', choices=[])
|
163 |
content_prompt = gr.Text(label='Content instance prompt', interactive=False, max_lines=1)
|
164 |
content_image = gr.Image(label='Content Image', elem_classes="gr-image")
|
165 |
with gr.Column():
|
166 |
with gr.Group(elem_classes="lora-column"):
|
167 |
-
gr.
|
168 |
style_checkbox = gr.Checkbox(label='Use Style Only', value=False)
|
169 |
style_lora_model_id = gr.Dropdown(label='Model ID', choices=[])
|
170 |
style_prompt = gr.Text(label='Style instance prompt', interactive=False, max_lines=1)
|
|
|
33 |
font-size: 250%;
|
34 |
}
|
35 |
|
36 |
+
.lora-title {
|
37 |
+
text-align: center;
|
38 |
+
border-radius: 10px;
|
39 |
+
background: linear-gradient(90deg, #1CB5E0 0%, #000851 100%);
|
40 |
+
}
|
41 |
+
|
42 |
.gr-image {
|
43 |
width: 512px;
|
44 |
height: 512px;
|
|
|
163 |
with gr.Row(elem_classes="gr-row"):
|
164 |
with gr.Column():
|
165 |
with gr.Group(elem_classes="lora-column"):
|
166 |
+
content_sub_title = gr.HTML('''<h2>Content B-LoRA</h2>''', elem_classes="lora-title")
|
167 |
content_checkbox = gr.Checkbox(label='Use Content Only', value=False)
|
168 |
content_lora_model_id = gr.Dropdown(label='Model ID', choices=[])
|
169 |
content_prompt = gr.Text(label='Content instance prompt', interactive=False, max_lines=1)
|
170 |
content_image = gr.Image(label='Content Image', elem_classes="gr-image")
|
171 |
with gr.Column():
|
172 |
with gr.Group(elem_classes="lora-column"):
|
173 |
+
style_sub_title = gr.HTML('''<h2>Style B-LoRA</h2>''', elem_classes="lora-title")
|
174 |
style_checkbox = gr.Checkbox(label='Use Style Only', value=False)
|
175 |
style_lora_model_id = gr.Dropdown(label='Model ID', choices=[])
|
176 |
style_prompt = gr.Text(label='Style instance prompt', interactive=False, max_lines=1)
|