Spaces:
Sleeping
Sleeping
ayberkuckun
commited on
Commit
•
98839a7
1
Parent(s):
4109aa8
fix cv2-2
Browse files
app.py
CHANGED
@@ -11,19 +11,19 @@ def count_vehicles(video):
|
|
11 |
yield from main(args)
|
12 |
|
13 |
|
14 |
-
with gr.Blocks() as demo:
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
|
29 |
demo.launch()
|
|
|
11 |
yield from main(args)
|
12 |
|
13 |
|
14 |
+
# with gr.Blocks() as demo:
|
15 |
+
# with gr.Row():
|
16 |
+
# gr.Textbox("./data/Video.mp4", label="Path to the video file.")
|
17 |
+
# with gr.Row():
|
18 |
+
# gr.Image(height=736, width=1280, label="Output video.")
|
19 |
+
# with gr.Row():
|
20 |
+
# gr.Textbox("0", label="Total incoming vehicles.")
|
21 |
+
# gr.Textbox("0", label="Total frames.")
|
22 |
+
# gr.Textbox("0", label="Total outgoing vehicles.")
|
23 |
|
24 |
+
demo = gr.Interface(
|
25 |
+
count_vehicles, inputs=gr.Textbox("./data/Video.mp4", label="Path to the video file."),
|
26 |
+
outputs=gr.Image(height=736, width=1280, label="Output video.")
|
27 |
+
)
|
28 |
|
29 |
demo.launch()
|