esun-choi commited on
Commit
7ad4f98
ยท
1 Parent(s): 3a9a78a

Initial Commit

Browse files
Files changed (1) hide show
  1. gradio.py +28 -0
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()