Update app.py
Browse files
app.py
CHANGED
@@ -28,18 +28,20 @@ def inference(image):
|
|
28 |
im = Image.open(im_reader(im_path))
|
29 |
|
30 |
|
31 |
-
return im
|
32 |
-
|
33 |
|
34 |
|
|
|
|
|
|
|
35 |
|
36 |
interface = gr.Interface(
|
37 |
fn=inference,
|
38 |
inputs=gr.Textbox(label="Text or Image URL", interactive=True),
|
39 |
-
outputs=["image"],
|
40 |
-
title=
|
41 |
-
description=
|
42 |
-
article=
|
43 |
allow_flagging='never',
|
44 |
cache_examples=False,
|
45 |
).queue().launch(show_error=True, share = True)
|
|
|
28 |
im = Image.open(im_reader(im_path))
|
29 |
|
30 |
|
31 |
+
return im, im , im
|
|
|
32 |
|
33 |
|
34 |
+
title = "Bg remover for sarvm catalog"
|
35 |
+
description = "Bg remover for sarvm catalog"
|
36 |
+
article = "<div><center><img src='https://visitor-badge.glitch.me/badge?page_id=max_skobeev_dis_cmp_public' alt='visitor badge'></center></div>"
|
37 |
|
38 |
interface = gr.Interface(
|
39 |
fn=inference,
|
40 |
inputs=gr.Textbox(label="Text or Image URL", interactive=True),
|
41 |
+
outputs=["image", "image", "image"],
|
42 |
+
title=title ,
|
43 |
+
description=description,
|
44 |
+
article=article,
|
45 |
allow_flagging='never',
|
46 |
cache_examples=False,
|
47 |
).queue().launch(show_error=True, share = True)
|