Spaces:
Sleeping
Sleeping
T.Masuda
commited on
Commit
·
f132a8a
1
Parent(s):
da1a52e
update app
Browse files
app.py
CHANGED
@@ -129,7 +129,7 @@ with gr.Blocks(title='clip-image') as app:
|
|
129 |
image.select(image_select, inputs=[state, enable1, left1, top1, enable2, left2, top2, enable3, left3, top3, enable4, left4, top4, enable5, left5, top5], outputs=[enable1, left1, top1, enable2, left2, top2, enable3, left3, top3, enable4, left4, top4, enable5, left5, top5])
|
130 |
btnloc.click(check_location, inputs=inputs, outputs=outputs)
|
131 |
clearBtn.add(inputs + outputs)
|
132 |
-
btn.click(process_image, inputs=inputs, outputs=outputs)
|
133 |
|
134 |
gr.Examples(
|
135 |
[['examples/example1.jpg', True, 200, 250, True, 340, 250, False, 0, 0, False, 0, 0, False, 0, 0, 'large'], ['examples/example2.jpg', True, 256, 256, False, 0, 0, False, 0, 0, False, 0, 0, False, 0, 0, 'large']],
|
@@ -139,5 +139,4 @@ with gr.Blocks(title='clip-image') as app:
|
|
139 |
cache_examples=True,
|
140 |
)
|
141 |
|
142 |
-
app.queue(concurrency_count=20)
|
143 |
app.launch()
|
|
|
129 |
image.select(image_select, inputs=[state, enable1, left1, top1, enable2, left2, top2, enable3, left3, top3, enable4, left4, top4, enable5, left5, top5], outputs=[enable1, left1, top1, enable2, left2, top2, enable3, left3, top3, enable4, left4, top4, enable5, left5, top5])
|
130 |
btnloc.click(check_location, inputs=inputs, outputs=outputs)
|
131 |
clearBtn.add(inputs + outputs)
|
132 |
+
btn.click(process_image, inputs=inputs, outputs=outputs, concurrency_limit=20)
|
133 |
|
134 |
gr.Examples(
|
135 |
[['examples/example1.jpg', True, 200, 250, True, 340, 250, False, 0, 0, False, 0, 0, False, 0, 0, 'large'], ['examples/example2.jpg', True, 256, 256, False, 0, 0, False, 0, 0, False, 0, 0, False, 0, 0, 'large']],
|
|
|
139 |
cache_examples=True,
|
140 |
)
|
141 |
|
|
|
142 |
app.launch()
|