Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
|
@@ -29,6 +29,7 @@ class Logger:
|
|
| 29 |
log = Logger()
|
| 30 |
sys.stdout = log
|
| 31 |
|
|
|
|
| 32 |
def read_logs():
|
| 33 |
out = log.log.getvalue().decode()
|
| 34 |
if out.count("\n") >= 30:
|
|
@@ -59,9 +60,15 @@ with gr.Blocks() as app:
|
|
| 59 |
|
| 60 |
})
|
| 61 |
with gr.Row():
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
with gr.Row():
|
| 66 |
with gr.Column(scale=4):
|
| 67 |
with gr.Row():
|
|
@@ -276,4 +283,4 @@ gr.close_all()
|
|
| 276 |
|
| 277 |
app.queue(concurrency_count=1, max_size=200, api_open=False)
|
| 278 |
|
| 279 |
-
app.launch(show_api=False)
|
|
|
|
| 29 |
log = Logger()
|
| 30 |
sys.stdout = log
|
| 31 |
|
| 32 |
+
|
| 33 |
def read_logs():
|
| 34 |
out = log.log.getvalue().decode()
|
| 35 |
if out.count("\n") >= 30:
|
|
|
|
| 60 |
|
| 61 |
})
|
| 62 |
with gr.Row():
|
| 63 |
+
with gr.Column():
|
| 64 |
+
form_composite_image = gr.Image(label='Input Composite image', type='pil').style(height="auto")
|
| 65 |
+
gr.Examples(examples=[os.path.join("demo", i) for i in os.listdir("demo") if "composite" in i],
|
| 66 |
+
label="Composite Examples", inputs=form_composite_image, cache_examples=False)
|
| 67 |
+
with gr.Column():
|
| 68 |
+
form_mask_image = gr.Image(label='Input Mask image', type='pil', interactive=False).style(
|
| 69 |
+
height="auto")
|
| 70 |
+
gr.Examples(examples=[os.path.join("demo", i) for i in os.listdir("demo") if "mask" in i],
|
| 71 |
+
label="Mask Examples", inputs=form_mask_image, cache_examples=False)
|
| 72 |
with gr.Row():
|
| 73 |
with gr.Column(scale=4):
|
| 74 |
with gr.Row():
|
|
|
|
| 283 |
|
| 284 |
app.queue(concurrency_count=1, max_size=200, api_open=False)
|
| 285 |
|
| 286 |
+
app.launch(show_api=False)
|