Spaces:
Running
Running
Commit
·
7bac7b2
1
Parent(s):
20aaa94
add icon
Browse files- app.py +2 -2
- favicon.png +0 -0
app.py
CHANGED
@@ -32,7 +32,7 @@ def abnormal_stream(image):
|
|
32 |
except Exception as e:
|
33 |
return {str(e): 1.0}
|
34 |
|
35 |
-
with gr.Blocks(analytics_enabled=False, title='졸음운전 알리미', head='<link rel="apple-touch-icon" href="/pwa_icon"
|
36 |
with gr.Row():
|
37 |
with gr.Column():
|
38 |
input_img = gr.Image(sources=["webcam"], type="pil")
|
@@ -41,4 +41,4 @@ with gr.Blocks(analytics_enabled=False, title='졸음운전 알리미', head='<l
|
|
41 |
dep = input_img.stream(abnormal_stream, [input_img], [output_label])
|
42 |
|
43 |
if __name__ == "__main__":
|
44 |
-
demo.launch(favicon_path='./favicon.
|
|
|
32 |
except Exception as e:
|
33 |
return {str(e): 1.0}
|
34 |
|
35 |
+
with gr.Blocks(analytics_enabled=False, title='졸음운전 알리미', head='<link rel="apple-touch-icon" sizes="512x512" href="/pwa_icon" /><meta name="theme-color" content="#0f0f11">') as demo:
|
36 |
with gr.Row():
|
37 |
with gr.Column():
|
38 |
input_img = gr.Image(sources=["webcam"], type="pil")
|
|
|
41 |
dep = input_img.stream(abnormal_stream, [input_img], [output_label])
|
42 |
|
43 |
if __name__ == "__main__":
|
44 |
+
demo.launch(favicon_path='./favicon.png', show_api=False)
|
favicon.png
ADDED
![]() |