Spaces:
Running
Running
Ffftdtd5dtft
commited on
Commit
•
de83e05
1
Parent(s):
9934eed
Update app.py
Browse files
app.py
CHANGED
@@ -95,6 +95,7 @@ with gr.Blocks(css=css) as demo:
|
|
95 |
|
96 |
run_button = gr.Button("Run", scale=0)
|
97 |
|
|
|
98 |
results = gr.Gallery(label="Results", show_label=False, elem_id="image-gallery")
|
99 |
|
100 |
with gr.Accordion("Advanced Settings", open=False):
|
@@ -114,7 +115,7 @@ with gr.Blocks(css=css) as demo:
|
|
114 |
width = gr.Slider(
|
115 |
label="Width",
|
116 |
minimum=256,
|
117 |
-
maximum=
|
118 |
step=32,
|
119 |
value=1024,
|
120 |
)
|
@@ -122,7 +123,7 @@ with gr.Blocks(css=css) as demo:
|
|
122 |
height = gr.Slider(
|
123 |
label="Height",
|
124 |
minimum=256,
|
125 |
-
maximum=
|
126 |
step=32,
|
127 |
value=1024,
|
128 |
)
|
@@ -137,10 +138,11 @@ with gr.Blocks(css=css) as demo:
|
|
137 |
value=4,
|
138 |
)
|
139 |
|
|
|
140 |
num_images = gr.Slider(
|
141 |
label="Number of images",
|
142 |
minimum=1,
|
143 |
-
maximum=
|
144 |
step=1,
|
145 |
value=1,
|
146 |
)
|
@@ -161,4 +163,4 @@ with gr.Blocks(css=css) as demo:
|
|
161 |
)
|
162 |
|
163 |
# Crear un enlace público con share=True
|
164 |
-
demo.launch(share=True)
|
|
|
95 |
|
96 |
run_button = gr.Button("Run", scale=0)
|
97 |
|
98 |
+
# Usamos gr.Gallery para mostrar múltiples imágenes
|
99 |
results = gr.Gallery(label="Results", show_label=False, elem_id="image-gallery")
|
100 |
|
101 |
with gr.Accordion("Advanced Settings", open=False):
|
|
|
115 |
width = gr.Slider(
|
116 |
label="Width",
|
117 |
minimum=256,
|
118 |
+
maximum=2048, # Ajusta el tamaño máximo según sea necesario
|
119 |
step=32,
|
120 |
value=1024,
|
121 |
)
|
|
|
123 |
height = gr.Slider(
|
124 |
label="Height",
|
125 |
minimum=256,
|
126 |
+
maximum=2048, # Ajusta el tamaño máximo según sea necesario
|
127 |
step=32,
|
128 |
value=1024,
|
129 |
)
|
|
|
138 |
value=4,
|
139 |
)
|
140 |
|
141 |
+
# Control para el número de imágenes a generar
|
142 |
num_images = gr.Slider(
|
143 |
label="Number of images",
|
144 |
minimum=1,
|
145 |
+
maximum=10, # Ajusta el número máximo de imágenes según sea necesario
|
146 |
step=1,
|
147 |
value=1,
|
148 |
)
|
|
|
163 |
)
|
164 |
|
165 |
# Crear un enlace público con share=True
|
166 |
+
demo.launch(share=True)
|