Spaces:
Build error
Build error
Download app.py from esun-choi/IniswProject: direct link, hf CLI and curl.
- Browser
- Download file 769 Bytes
-
https://huggingface.co/spaces/esun-choi/IniswProject/resolve/main/app.py
- Command line
-
hf download hf://spaces/esun-choi/IniswProject/app.py
-
curl -L -o app.py https://huggingface.co/spaces/esun-choi/IniswProject/resolve/main/app.py
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() |