Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,40 +1,21 @@
|
|
1 |
-
# import gradio as gr
|
2 |
-
|
3 |
-
# def play_video():
|
4 |
-
# return "KakaoTalk_20240412_132624096.mp4"
|
5 |
-
|
6 |
-
# css = """
|
7 |
-
# video {
|
8 |
-
# width: 100% !important;
|
9 |
-
# height: auto !important;
|
10 |
-
# }
|
11 |
-
# """
|
12 |
-
|
13 |
-
# app = gr.Interface(
|
14 |
-
# fn=play_video,
|
15 |
-
# inputs=[],
|
16 |
-
# outputs=gr.components.Video(label="Playback"),
|
17 |
-
# title="Obstacles Detection Demo",
|
18 |
-
# css=css
|
19 |
-
# )
|
20 |
-
|
21 |
-
# if __name__ == "__main__":
|
22 |
-
# app.launch()
|
23 |
-
|
24 |
import gradio as gr
|
25 |
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
|
|
|
|
|
|
|
|
31 |
|
32 |
app = gr.Interface(
|
33 |
-
fn=
|
34 |
-
inputs=
|
35 |
-
outputs=gr.components.Video(label="Playback"),
|
36 |
-
title="
|
37 |
-
|
38 |
)
|
39 |
|
40 |
if __name__ == "__main__":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
def play_video():
|
4 |
+
return "KakaoTalk_20240412_132624096.mp4"
|
5 |
+
|
6 |
+
css = """
|
7 |
+
video {
|
8 |
+
width: 100% !important;
|
9 |
+
height: auto !important;
|
10 |
+
}
|
11 |
+
"""
|
12 |
|
13 |
app = gr.Interface(
|
14 |
+
fn=play_video,
|
15 |
+
inputs=[],
|
16 |
+
outputs=gr.components.Video(label="Playback"),
|
17 |
+
title="Obstacles Detection Demo",
|
18 |
+
css=css
|
19 |
)
|
20 |
|
21 |
if __name__ == "__main__":
|