Spaces:
Build error
Build error
File size: 591 Bytes
206afea 7bebe3a 206afea a1b3e87 2f2449e a1b3e87 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
import gradio as gr
from main import main
def mask_image(image):
return image
with gr.Blocks(title="Privacy Mask", css="footer{display:none !important}") as demo:
with gr.Row():
image_input = gr.Image(type="filepath", label="Invoice Image")
image_output = gr.Image(show_download_button=True, type="pil", label="Masked Invoice Image")
with gr.Row():
image_button = gr.Button("Masking")
image_button.click(main, inputs=image_input, outputs=image_output)
clear_button = gr.ClearButton([image_input, image_output])
demo.launch()
|