Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,7 @@ import imageio
|
|
3 |
from PIL import Image
|
4 |
import gradio as gr
|
5 |
import cv2
|
|
|
6 |
import paddlehub as hub
|
7 |
import onnxruntime
|
8 |
|
@@ -86,7 +87,7 @@ iface = gr.Interface(
|
|
86 |
fn=process_image,
|
87 |
inputs=[
|
88 |
gr.Image(label="Input Image", type="numpy"),
|
89 |
-
gr.Radio(choices=["automatic",
|
90 |
type="value", label="Masking Option")
|
91 |
],
|
92 |
outputs=[
|
@@ -94,7 +95,7 @@ iface = gr.Interface(
|
|
94 |
gr.Image(type="filepath", label="Generated Mask")
|
95 |
],
|
96 |
title="LaMa Image Inpainting",
|
97 |
-
description="Image inpainting with LaMa and U^2-Net. Upload your image and choose automatic
|
98 |
)
|
99 |
|
100 |
iface.launch()
|
|
|
3 |
from PIL import Image
|
4 |
import gradio as gr
|
5 |
import cv2
|
6 |
+
import numpy as np
|
7 |
import paddlehub as hub
|
8 |
import onnxruntime
|
9 |
|
|
|
87 |
fn=process_image,
|
88 |
inputs=[
|
89 |
gr.Image(label="Input Image", type="numpy"),
|
90 |
+
gr.Radio(choices=["automatic", ],
|
91 |
type="value", label="Masking Option")
|
92 |
],
|
93 |
outputs=[
|
|
|
95 |
gr.Image(type="filepath", label="Generated Mask")
|
96 |
],
|
97 |
title="LaMa Image Inpainting",
|
98 |
+
description="Image inpainting with LaMa and U^2-Net. Upload your image and choose automatic.",
|
99 |
)
|
100 |
|
101 |
iface.launch()
|