Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -236,18 +236,12 @@ def update_history(new_image, history):
|
|
| 236 |
|
| 237 |
|
| 238 |
# --- CSS and Title (unchanged) ---
|
|
|
|
| 239 |
css = """
|
| 240 |
h1 {
|
| 241 |
text-align: center;
|
| 242 |
display: block;
|
| 243 |
}
|
| 244 |
-
/* Ensure history gallery images are reasonably sized */
|
| 245 |
-
#history_gallery .gallery-item {
|
| 246 |
-
height: 100px; /* Adjust as needed */
|
| 247 |
-
}
|
| 248 |
-
#history_gallery .gallery-item img {
|
| 249 |
-
object-fit: contain !important;
|
| 250 |
-
}
|
| 251 |
"""
|
| 252 |
|
| 253 |
title = """<h1 align="center">Diffusers Image Outpaint Lightning</h1>
|
|
@@ -268,7 +262,7 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css) as demo:
|
|
| 268 |
with gr.Column(scale=2):
|
| 269 |
prompt_input = gr.Textbox(label="Prompt (Optional)")
|
| 270 |
with gr.Column(scale=1):
|
| 271 |
-
run_button = gr.Button("Generate / Outpaint Image")
|
| 272 |
|
| 273 |
with gr.Row():
|
| 274 |
target_ratio = gr.Radio(
|
|
|
|
| 236 |
|
| 237 |
|
| 238 |
# --- CSS and Title (unchanged) ---
|
| 239 |
+
# CSS and title (unchanged)
|
| 240 |
css = """
|
| 241 |
h1 {
|
| 242 |
text-align: center;
|
| 243 |
display: block;
|
| 244 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 245 |
"""
|
| 246 |
|
| 247 |
title = """<h1 align="center">Diffusers Image Outpaint Lightning</h1>
|
|
|
|
| 262 |
with gr.Column(scale=2):
|
| 263 |
prompt_input = gr.Textbox(label="Prompt (Optional)")
|
| 264 |
with gr.Column(scale=1):
|
| 265 |
+
run_button = gr.Button("Generate / Diffusers Outpaint Image")
|
| 266 |
|
| 267 |
with gr.Row():
|
| 268 |
target_ratio = gr.Radio(
|