Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -214,18 +214,34 @@ def update_history(new_image, history):
|
|
214 |
history.insert(0, new_image)
|
215 |
return history
|
216 |
|
|
|
217 |
css = """
|
218 |
.gradio-container {
|
219 |
-
width: 1200px !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
220 |
}
|
221 |
-
h1 { text-align: center; }
|
222 |
-
footer { visibility: hidden; }
|
223 |
"""
|
224 |
|
|
|
225 |
title = """<h1 align="center">Diffusers Image Outpaint Lightning</h1>
|
226 |
"""
|
227 |
|
228 |
-
with gr.Blocks(css=css) as demo:
|
229 |
with gr.Column():
|
230 |
gr.HTML(title)
|
231 |
|
|
|
214 |
history.insert(0, new_image)
|
215 |
return history
|
216 |
|
217 |
+
# --- CSS and Title (unchanged) ---
|
218 |
css = """
|
219 |
.gradio-container {
|
220 |
+
max-width: 1200px !important;
|
221 |
+
margin: auto !important;
|
222 |
+
}
|
223 |
+
/* Add some spacing */
|
224 |
+
.gr-form > * {
|
225 |
+
margin-bottom: 10px;
|
226 |
+
}
|
227 |
+
.gr-button {
|
228 |
+
min-width: 100px; /* Ensure buttons have a minimum width */
|
229 |
+
}
|
230 |
+
/* Style the history gallery */
|
231 |
+
#history_gallery .gr-gallery {
|
232 |
+
min-height: 150px; /* Give gallery some minimum height */
|
233 |
+
}
|
234 |
+
#history_gallery .gr-gallery > .gr-image {
|
235 |
+
border: 1px solid #ddd; /* Add subtle border to gallery images */
|
236 |
+
border-radius: 4px;
|
237 |
}
|
|
|
|
|
238 |
"""
|
239 |
|
240 |
+
|
241 |
title = """<h1 align="center">Diffusers Image Outpaint Lightning</h1>
|
242 |
"""
|
243 |
|
244 |
+
with gr.Blocks(theme=gr.themes.Soft(), css=css) as demo:
|
245 |
with gr.Column():
|
246 |
gr.HTML(title)
|
247 |
|