File size: 769 Bytes
7ad4f98
 
 
 
 
 
 
 
 
9ab348b
 
 
 
 
 
7ad4f98
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import gradio as gr
import cv2
import numpy as np

# ์ž„์˜์˜ ๋งˆ์Šคํ‚น ํ•จ์ˆ˜ ์ •์˜ (์‹ค์ œ ๋ชจ๋ธ์„ ์—ฌ๊ธฐ์— ์—ฐ๊ฒฐ)
def mask_image(image):
    return image

with gr.Blocks(title="Privacy Mask", css="footer{display:none !important}") as demo:
    # gr.Markdown(
    # """
    # ## Invoice Info Auto-Masking Service
    # # InvoHide
    # ### Simply Protect your private informations in Invoice Image
    # """)
    with gr.Row():
        image_input = gr.Image()
        #image_output = gr.Image() # download [ok]
        image_output = gr.Image(
                show_download_button=True
            )
    image_button = gr.Button("masking")
    image_button.click(
        mask_image,
        inputs=image_input,
        outputs=image_output
    )
demo.launch()