Spaces:
Sleeping
Sleeping
Commit ·
10d2b72
1
Parent(s): d4c4789
icon
Browse files- app.py +2 -12
- favicon.png +0 -0
- favicon.svg +0 -3
- favicon2.png → favicon512.png +0 -0
app.py
CHANGED
|
@@ -35,17 +35,7 @@ def abnormal_stream(image):
|
|
| 35 |
with gr.Blocks(
|
| 36 |
analytics_enabled=False,
|
| 37 |
title='졸음운전 알리미',
|
| 38 |
-
head='''<
|
| 39 |
-
<link rel="apple-touch-icon" sizes="60x60" href="/pwa_icon" />
|
| 40 |
-
<link rel="apple-touch-icon" sizes="72x72" href="/pwa_icon" />
|
| 41 |
-
<link rel="apple-touch-icon" sizes="76x76" href="/pwa_icon" />
|
| 42 |
-
<link rel="apple-touch-icon" sizes="114x114" href="/pwa_icon" />
|
| 43 |
-
<link rel="apple-touch-icon" sizes="120x120" href="/pwa_icon" />
|
| 44 |
-
<link rel="apple-touch-icon" sizes="144x144" href="/pwa_icon" />
|
| 45 |
-
<link rel="apple-touch-icon" sizes="152x152" href="/pwa_icon" />
|
| 46 |
-
<link rel="apple-touch-icon" sizes="180x180" href="/pwa_icon" />
|
| 47 |
-
<link rel="apple-touch-icon" sizes="512x512" href="/pwa_icon" />
|
| 48 |
-
<meta name="theme-color" content="#0f0f11">''') as demo:
|
| 49 |
with gr.Row():
|
| 50 |
with gr.Column():
|
| 51 |
input_img = gr.Image(sources=["webcam"], type="pil")
|
|
@@ -54,4 +44,4 @@ with gr.Blocks(
|
|
| 54 |
dep = input_img.stream(abnormal_stream, [input_img], [output_label])
|
| 55 |
|
| 56 |
if __name__ == "__main__":
|
| 57 |
-
demo.launch(favicon_path='./
|
|
|
|
| 35 |
with gr.Blocks(
|
| 36 |
analytics_enabled=False,
|
| 37 |
title='졸음운전 알리미',
|
| 38 |
+
head='''<meta name="theme-color" content="#0f0f11">''') as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
with gr.Row():
|
| 40 |
with gr.Column():
|
| 41 |
input_img = gr.Image(sources=["webcam"], type="pil")
|
|
|
|
| 44 |
dep = input_img.stream(abnormal_stream, [input_img], [output_label])
|
| 45 |
|
| 46 |
if __name__ == "__main__":
|
| 47 |
+
demo.launch(favicon_path='./favicon.png', show_api=False)
|
favicon.png
CHANGED
|
|
|
|
favicon.svg
DELETED
favicon2.png → favicon512.png
RENAMED
|
File without changes
|