Geumokmiddleschool commited on
Commit
9721e82
Β·
verified Β·
1 Parent(s): 1a9fd0e

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -0
app.py ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def create_interface():
4
+ with open("index.html", "r", encoding="utf-8") as f:
5
+ html_content = f.read()
6
+
7
+ return gr.HTML(html_content)
8
+
9
+ demo = gr.Interface(
10
+ fn=create_interface,
11
+ inputs=[],
12
+ outputs="html",
13
+ title="μ‹€μ‹œκ°„ 폭λ ₯ 감지 μ‹œμŠ€ν…œ",
14
+ description="웹캠을 μ‚¬μš©ν•œ μ‹€μ‹œκ°„ 폭λ ₯ ν–‰μœ„ 감지 및 μžλ™ 촬영 μ‹œμŠ€ν…œ"
15
+ )
16
+
17
+ if __name__ == "__main__":
18
+ demo.launch()