Spaces:
Runtime error
Runtime error
dryade36513
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -257,18 +257,17 @@ for ex_human in human_list_path:
|
|
257 |
|
258 |
##default human
|
259 |
|
260 |
-
|
261 |
image_blocks = gr.Blocks().queue()
|
262 |
with image_blocks as demo:
|
263 |
-
gr.Markdown("##
|
264 |
-
gr.Markdown("
|
265 |
with gr.Row():
|
266 |
with gr.Column():
|
267 |
-
imgs = gr.ImageEditor(sources='upload', type="pil", label='
|
268 |
with gr.Row():
|
269 |
-
is_checked = gr.Checkbox(label="Yes", info="
|
270 |
with gr.Row():
|
271 |
-
is_checked_crop = gr.Checkbox(label="Yes", info="
|
272 |
|
273 |
example = gr.Examples(
|
274 |
inputs=imgs,
|
@@ -277,20 +276,20 @@ with image_blocks as demo:
|
|
277 |
)
|
278 |
|
279 |
with gr.Column():
|
280 |
-
garm_img = gr.Image(label="
|
281 |
with gr.Row(elem_id="prompt-container"):
|
282 |
with gr.Row():
|
283 |
-
prompt = gr.Textbox(placeholder="
|
284 |
example = gr.Examples(
|
285 |
inputs=garm_img,
|
286 |
-
examples_per_page=
|
287 |
examples=garm_list_path)
|
288 |
with gr.Column():
|
289 |
# image_out = gr.Image(label="Output", elem_id="output-img", height=400)
|
290 |
masked_img = gr.Image(label="Masked image output", elem_id="masked-img",show_share_button=False)
|
291 |
with gr.Column():
|
292 |
# image_out = gr.Image(label="Output", elem_id="output-img", height=400)
|
293 |
-
image_out = gr.Image(label="
|
294 |
|
295 |
|
296 |
|
|
|
257 |
|
258 |
##default human
|
259 |
|
|
|
260 |
image_blocks = gr.Blocks().queue()
|
261 |
with image_blocks as demo:
|
262 |
+
gr.Markdown("## ๐ ๅๅ่่กฃ ๐")
|
263 |
+
gr.Markdown("ไธๅณ็
ง็ๆฃๆๅ
ๆจก็นๅฅฝ่ผ้ฌ")
|
264 |
with gr.Row():
|
265 |
with gr.Column():
|
266 |
+
imgs = gr.ImageEditor(sources='upload', type="pil", label='๐ๆจก็นๅ
็ธ็ไธๅณ๐', interactive=True)
|
267 |
with gr.Row():
|
268 |
+
is_checked = gr.Checkbox(label="Yes", info="๐่ชๅ็ๆ้ฎ็ฝฉ๐",value=True)
|
269 |
with gr.Row():
|
270 |
+
is_checked_crop = gr.Checkbox(label="Yes", info="๐่ชๅๅช่ฃไธฆ็ธฎๆพๅคงๅฐ๐",value=False)
|
271 |
|
272 |
example = gr.Examples(
|
273 |
inputs=imgs,
|
|
|
276 |
)
|
277 |
|
278 |
with gr.Column():
|
279 |
+
garm_img = gr.Image(label="๐ๆ่กฃ็ธ็๐", sources='upload', type="pil")
|
280 |
with gr.Row(elem_id="prompt-container"):
|
281 |
with gr.Row():
|
282 |
+
prompt = gr.Textbox(placeholder="๐...่ซ็จ่ฑๆ่ชชๆๆ่กฃ็จฎ้ก...ๅฆ Short Sleeve Round Neck T-shirts", show_label=False, elem_id="prompt")
|
283 |
example = gr.Examples(
|
284 |
inputs=garm_img,
|
285 |
+
examples_per_page=12,
|
286 |
examples=garm_list_path)
|
287 |
with gr.Column():
|
288 |
# image_out = gr.Image(label="Output", elem_id="output-img", height=400)
|
289 |
masked_img = gr.Image(label="Masked image output", elem_id="masked-img",show_share_button=False)
|
290 |
with gr.Column():
|
291 |
# image_out = gr.Image(label="Output", elem_id="output-img", height=400)
|
292 |
+
image_out = gr.Image(label="๐ๆจกๆจก่่กฃ็
ง๐", elem_id="output-img",show_share_button=False)
|
293 |
|
294 |
|
295 |
|