Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -202,9 +202,25 @@ with gr.Blocks() as demo:
|
|
202 |
with gr.Column():
|
203 |
inputs_0 = gr.Image(label = "Input Image for embed")
|
204 |
button_0 = gr.Button("Image button")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
205 |
with gr.Column():
|
206 |
inputs_1 = gr.File(label = "Input Images zip file for embed")
|
207 |
button_1 = gr.Button("Image File button")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
208 |
with gr.Row():
|
209 |
with gr.Column():
|
210 |
with gr.Row():
|
@@ -225,24 +241,6 @@ with gr.Blocks() as demo:
|
|
225 |
sg_outputs = gr.Gallery(label='Sort gallery', elem_id="gallery",
|
226 |
columns=[5],object_fit="contain", height="auto")
|
227 |
|
228 |
-
with gr.Row():
|
229 |
-
gr.Examples(
|
230 |
-
[
|
231 |
-
"Anything_V5.png",
|
232 |
-
"waifu_girl0.png",
|
233 |
-
],
|
234 |
-
inputs = inputs_0,
|
235 |
-
label = "Image Examples"
|
236 |
-
)
|
237 |
-
gr.Examples(
|
238 |
-
[
|
239 |
-
"rose_love_imgs.zip",
|
240 |
-
"beautiful_room_imgs.zip"
|
241 |
-
],
|
242 |
-
inputs = inputs_1,
|
243 |
-
label = "Image Zip file Examples"
|
244 |
-
)
|
245 |
-
|
246 |
button_0.click(fn = emb_img_func, inputs = [inputs_0, choose_model], outputs = outputs)
|
247 |
button_1.click(fn = unzip_ims_func, inputs = [inputs_1, choose_model],
|
248 |
outputs = [outputs, g_outputs])
|
|
|
202 |
with gr.Column():
|
203 |
inputs_0 = gr.Image(label = "Input Image for embed")
|
204 |
button_0 = gr.Button("Image button")
|
205 |
+
gr.Examples(
|
206 |
+
[
|
207 |
+
"Anything_V5.png",
|
208 |
+
"waifu_girl0.png",
|
209 |
+
],
|
210 |
+
inputs = inputs_0,
|
211 |
+
label = "Image Examples"
|
212 |
+
)
|
213 |
with gr.Column():
|
214 |
inputs_1 = gr.File(label = "Input Images zip file for embed")
|
215 |
button_1 = gr.Button("Image File button")
|
216 |
+
gr.Examples(
|
217 |
+
[
|
218 |
+
"rose_love_imgs.zip",
|
219 |
+
"beautiful_room_imgs.zip"
|
220 |
+
],
|
221 |
+
inputs = inputs_1,
|
222 |
+
label = "Image Zip file Examples"
|
223 |
+
)
|
224 |
with gr.Row():
|
225 |
with gr.Column():
|
226 |
with gr.Row():
|
|
|
241 |
sg_outputs = gr.Gallery(label='Sort gallery', elem_id="gallery",
|
242 |
columns=[5],object_fit="contain", height="auto")
|
243 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
244 |
button_0.click(fn = emb_img_func, inputs = [inputs_0, choose_model], outputs = outputs)
|
245 |
button_1.click(fn = unzip_ims_func, inputs = [inputs_1, choose_model],
|
246 |
outputs = [outputs, g_outputs])
|