Spaces:
Running
Running
Commit
·
15ce179
1
Parent(s):
a8e02b6
add pwa
Browse files
app.py
CHANGED
@@ -86,7 +86,11 @@ def analyze_frame(image):
|
|
86 |
except Exception as e:
|
87 |
return f"오류 발생: {str(e)}", "image1.png", None
|
88 |
|
89 |
-
with gr.Blocks(
|
|
|
|
|
|
|
|
|
90 |
with gr.Row():
|
91 |
with gr.Column():
|
92 |
input_img = gr.Image(sources=["webcam"], type="pil")
|
@@ -98,4 +102,4 @@ with gr.Blocks() as demo:
|
|
98 |
input_img.stream(analyze_frame, [input_img], [output_label, output_image, output_audio])
|
99 |
|
100 |
if __name__ == "__main__":
|
101 |
-
|
|
|
86 |
except Exception as e:
|
87 |
return f"오류 발생: {str(e)}", "image1.png", None
|
88 |
|
89 |
+
with gr.Blocks(
|
90 |
+
analytics_enabled=False,
|
91 |
+
title='졸음운전 알리미',
|
92 |
+
head='''<meta name="theme-color" content="#0f0f11">''',
|
93 |
+
) as app:
|
94 |
with gr.Row():
|
95 |
with gr.Column():
|
96 |
input_img = gr.Image(sources=["webcam"], type="pil")
|
|
|
102 |
input_img.stream(analyze_frame, [input_img], [output_label, output_image, output_audio])
|
103 |
|
104 |
if __name__ == "__main__":
|
105 |
+
app.launch(favicon_path='./favicon.png', show_api=False)
|