Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -89,6 +89,56 @@ def main(image_path, b_lora_trained_folder, instance_prompt):
|
|
| 89 |
|
| 90 |
css = """
|
| 91 |
#col-container {max-width: 780px; margin-left: auto; margin-right: auto;}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 92 |
"""
|
| 93 |
with gr.Blocks(css=css) as demo:
|
| 94 |
with gr.Column(elem_id="col-container"):
|
|
|
|
| 89 |
|
| 90 |
css = """
|
| 91 |
#col-container {max-width: 780px; margin-left: auto; margin-right: auto;}
|
| 92 |
+
|
| 93 |
+
div#warning-ready {
|
| 94 |
+
background-color: #ecfdf5;
|
| 95 |
+
padding: 0 10px 5px;
|
| 96 |
+
margin: 20px 0;
|
| 97 |
+
}
|
| 98 |
+
div#warning-ready > .gr-prose > h2, div#warning-ready > .gr-prose > p {
|
| 99 |
+
color: #057857!important;
|
| 100 |
+
}
|
| 101 |
+
div#warning-duplicate {
|
| 102 |
+
background-color: #ebf5ff;
|
| 103 |
+
padding: 0 10px 5px;
|
| 104 |
+
margin: 20px 0;
|
| 105 |
+
}
|
| 106 |
+
div#warning-duplicate > .gr-prose > h2, div#warning-duplicate > .gr-prose > p {
|
| 107 |
+
color: #0f4592!important;
|
| 108 |
+
}
|
| 109 |
+
div#warning-duplicate strong {
|
| 110 |
+
color: #0f4592;
|
| 111 |
+
}
|
| 112 |
+
p.actions {
|
| 113 |
+
display: flex;
|
| 114 |
+
align-items: center;
|
| 115 |
+
margin: 20px 0;
|
| 116 |
+
}
|
| 117 |
+
div#warning-duplicate .actions a {
|
| 118 |
+
display: inline-block;
|
| 119 |
+
margin-right: 10px;
|
| 120 |
+
}
|
| 121 |
+
div#warning-setgpu {
|
| 122 |
+
background-color: #fff4eb;
|
| 123 |
+
padding: 0 10px 5px;
|
| 124 |
+
margin: 20px 0;
|
| 125 |
+
}
|
| 126 |
+
div#warning-setgpu > .gr-prose > h2, div#warning-setgpu > .gr-prose > p {
|
| 127 |
+
color: #92220f!important;
|
| 128 |
+
}
|
| 129 |
+
div#warning-setgpu a, div#warning-setgpu b {
|
| 130 |
+
color: #91230f;
|
| 131 |
+
}
|
| 132 |
+
div#warning-setgpu p.actions > a {
|
| 133 |
+
display: inline-block;
|
| 134 |
+
background: #1f1f23;
|
| 135 |
+
border-radius: 40px;
|
| 136 |
+
padding: 6px 24px;
|
| 137 |
+
color: antiquewhite;
|
| 138 |
+
text-decoration: none;
|
| 139 |
+
font-weight: 600;
|
| 140 |
+
font-size: 1.2em;
|
| 141 |
+
}
|
| 142 |
"""
|
| 143 |
with gr.Blocks(css=css) as demo:
|
| 144 |
with gr.Column(elem_id="col-container"):
|