Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,12 +9,9 @@ def inference(img):
|
|
9 |
output = remove(input_img[:, :, [2,1,0]])
|
10 |
return output
|
11 |
|
12 |
-
title = "
|
13 |
-
|
14 |
-
description = "上传需要去背景的图片,点击Submit,稍等片刻,右侧Output将去背景后的主体另存为即可。"
|
15 |
-
|
16 |
-
article = "<p style='text-align: center'><a href='https://mp.weixin.qq.com/s?__biz=MzA4MjYwMTc5Nw==&mid=2648966119&idx=1&sn=c086db1ff0293b32e539dd5df7159e22&chksm=879391cdb0e418dbacb9fae512019d00921f9a9c96b495e2d1c37b930698abc0757d4df0a15d&token=474570519&lang=zh_CN#rd' target='_blank'>关注我的公众号,学习更多</a></p><center><img src='https://api.visitorbadge.io/api/visitors?path=https%3A%2F%2Fwww.github.com%2Ftjxj%2Fgithub-visitor-badge&countColor=%23263759' alt='visitor badge'></center>"
|
17 |
|
|
|
18 |
|
19 |
gr.Interface(
|
20 |
inference,
|
@@ -22,5 +19,4 @@ gr.Interface(
|
|
22 |
gr.outputs.Image(type="pil", label="Output"),
|
23 |
title=title,
|
24 |
description=description,
|
25 |
-
article=article
|
26 |
).launch()
|
|
|
9 |
output = remove(input_img[:, :, [2,1,0]])
|
10 |
return output
|
11 |
|
12 |
+
title = "Remove Background App"
|
|
|
|
|
|
|
|
|
13 |
|
14 |
+
description = "Upload images and click submit"
|
15 |
|
16 |
gr.Interface(
|
17 |
inference,
|
|
|
19 |
gr.outputs.Image(type="pil", label="Output"),
|
20 |
title=title,
|
21 |
description=description,
|
|
|
22 |
).launch()
|