Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,7 +44,7 @@ def resize_image(image):
|
|
| 44 |
return image
|
| 45 |
|
| 46 |
|
| 47 |
-
def process(
|
| 48 |
|
| 49 |
# prepare input
|
| 50 |
orig_image = Image.fromarray(image)
|
|
@@ -111,7 +111,7 @@ title = "Background Removal"
|
|
| 111 |
description = "Remove Image Background"
|
| 112 |
examples = [['./input.jpg'],]
|
| 113 |
output = ImageSlider(position=0.5,label='Image without background', type="pil", show_download_button=True)
|
| 114 |
-
demo = gr.Interface(fn=process,inputs="
|
| 115 |
|
| 116 |
if __name__ == "__main__":
|
| 117 |
demo.launch(share=False)
|
|
|
|
| 44 |
return image
|
| 45 |
|
| 46 |
|
| 47 |
+
def process(image):
|
| 48 |
|
| 49 |
# prepare input
|
| 50 |
orig_image = Image.fromarray(image)
|
|
|
|
| 111 |
description = "Remove Image Background"
|
| 112 |
examples = [['./input.jpg'],]
|
| 113 |
output = ImageSlider(position=0.5,label='Image without background', type="pil", show_download_button=True)
|
| 114 |
+
demo = gr.Interface(fn=process,inputs="image", outputs=output, examples=examples, title=title, description=description)
|
| 115 |
|
| 116 |
if __name__ == "__main__":
|
| 117 |
demo.launch(share=False)
|