Spaces:
Running
on
Zero
Running
on
Zero
Yardenfren
commited on
Commit
•
33977ae
1
Parent(s):
8b6a884
Update app_inference.py
Browse files- app_inference.py +13 -3
app_inference.py
CHANGED
@@ -18,11 +18,12 @@ SAMPLE_MODEL_IDS = [
|
|
18 |
'lora-library/B-LoRA-wolf_plushie',
|
19 |
'lora-library/B-LoRA-pen_sketch',
|
20 |
'lora-library/B-LoRA-cartoon_line',
|
|
|
21 |
'lora-library/B-LoRA-multi-dog2',
|
22 |
]
|
23 |
css = """
|
24 |
-
|
25 |
-
|
26 |
}
|
27 |
|
28 |
#title {
|
@@ -34,6 +35,7 @@ body {
|
|
34 |
}
|
35 |
|
36 |
.lora-title {
|
|
|
37 |
text-align: center;
|
38 |
border-radius: 10px;
|
39 |
background: linear-gradient(90deg, #1CB5E0 0%, #000851 100%);
|
@@ -46,6 +48,14 @@ body {
|
|
46 |
margin: auto;
|
47 |
}
|
48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
.lora-column {
|
50 |
display: flex;
|
51 |
flex-direction: column;
|
@@ -183,7 +193,7 @@ with gr.Blocks(css=css) as demo:
|
|
183 |
max_lines=1,
|
184 |
placeholder='Example: "A [c] in [s] style"'
|
185 |
)
|
186 |
-
result = gr.Image(label='Result')
|
187 |
with gr.Accordion('Other Parameters', open=False, elem_classes="gr-accordion"):
|
188 |
content_alpha = gr.Slider(label='Content B-LoRA alpha',
|
189 |
minimum=0,
|
|
|
18 |
'lora-library/B-LoRA-wolf_plushie',
|
19 |
'lora-library/B-LoRA-pen_sketch',
|
20 |
'lora-library/B-LoRA-cartoon_line',
|
21 |
+
'lora-library/B-LoRA-child',
|
22 |
'lora-library/B-LoRA-multi-dog2',
|
23 |
]
|
24 |
css = """
|
25 |
+
.gradio-container {
|
26 |
+
max-width: 1250px !important;
|
27 |
}
|
28 |
|
29 |
#title {
|
|
|
35 |
}
|
36 |
|
37 |
.lora-title {
|
38 |
+
color: white;
|
39 |
text-align: center;
|
40 |
border-radius: 10px;
|
41 |
background: linear-gradient(90deg, #1CB5E0 0%, #000851 100%);
|
|
|
48 |
margin: auto;
|
49 |
}
|
50 |
|
51 |
+
.res-image {
|
52 |
+
width: 720px;
|
53 |
+
height: 720px;
|
54 |
+
object-fit: contain;
|
55 |
+
margin: auto;
|
56 |
+
}
|
57 |
+
|
58 |
+
|
59 |
.lora-column {
|
60 |
display: flex;
|
61 |
flex-direction: column;
|
|
|
193 |
max_lines=1,
|
194 |
placeholder='Example: "A [c] in [s] style"'
|
195 |
)
|
196 |
+
result = gr.Image(label='Result', elem_classes="res-image")
|
197 |
with gr.Accordion('Other Parameters', open=False, elem_classes="gr-accordion"):
|
198 |
content_alpha = gr.Slider(label='Content B-LoRA alpha',
|
199 |
minimum=0,
|