IniswProject / app.py
esun-choi's picture
Update app.py
9ab348b
raw
history blame contribute delete
769 Bytes
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()