ayberkuckun commited on
Commit
98839a7
1 Parent(s): 4109aa8
Files changed (1) hide show
  1. app.py +13 -13
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
- 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()
 
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()