Spaces:
Sleeping
Sleeping
Initial Commit
Browse files
gradio.py
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
import cv2
|
3 |
+
import numpy as np
|
4 |
+
|
5 |
+
# ์์์ ๋ง์คํน ํจ์ ์ ์ (์ค์ ๋ชจ๋ธ์ ์ฌ๊ธฐ์ ์ฐ๊ฒฐ)
|
6 |
+
def mask_image(image):
|
7 |
+
return image
|
8 |
+
|
9 |
+
with gr.Blocks(title="Privacy Mask", css="footer{display:none !important}") as demo:
|
10 |
+
gr.Markdown(
|
11 |
+
"""
|
12 |
+
## Invoice Info Auto-Masking Service
|
13 |
+
# InvoHide
|
14 |
+
### Simply Protect your private informations in Invoice Image
|
15 |
+
""")
|
16 |
+
with gr.Row():
|
17 |
+
image_input = gr.Image()
|
18 |
+
#image_output = gr.Image() # download [ok]
|
19 |
+
image_output = gr.Image(
|
20 |
+
show_download_button=True
|
21 |
+
)
|
22 |
+
image_button = gr.Button("masking")
|
23 |
+
image_button.click(
|
24 |
+
mask_image,
|
25 |
+
inputs=image_input,
|
26 |
+
outputs=image_output
|
27 |
+
)
|
28 |
+
demo.launch()
|