ntsc207 commited on
Commit
ee00b10
·
verified ·
1 Parent(s): 0a4b86a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -200,7 +200,7 @@ def app():
200
  with gr.Blocks(title="YOLOv9: Real-time Object Detection", css=".gradio-container {background:lightyellow;}"):
201
  with gr.Row():
202
  with gr.Column():
203
- gr.HTML("<h2>Input Parameters</h2>")
204
  img_path = gr.Image(label="Image", height = 260, width = 410)
205
  vid_path = gr.Video(label="Video", height = 260, width = 410)
206
  #gr.HTML("<img src='flie/img_examples/clasess.png'>")
@@ -229,14 +229,14 @@ def app():
229
  #gr.Examples(['./video_examples/video_1.mp4', './video_examples/video_2.mp4','./video_examples/video_3.mp4','./video_examples/video_4.mp4','./video_examples/video_5.mp4'], inputs=vid_path, label = "Video Example", cache_examples = False)
230
  with gr.Column(min_width = 270):
231
  gr.HTML("<h2>Output</h2>")
232
- output_image = gr.Image(type="numpy",label="Output", height = 260, width = 410)
233
  #df = gr.BarPlot(show_label=False, x="label", y="counts", x_title="Labels", y_title="Counts", vertical=False)
234
- output_video = gr.Video(label="Output", height = 260, width = 410)
235
  #frame_counts_df = gr.LinePlot(show_label=False, x="frame", y="count", x_title="Frame", y_title="Counts", color="label")
236
  fig = gr.Plot(label = "label")
237
  #output_path = gr.Textbox(label="Output path")
238
  with gr.Column():
239
- gr.HTML("<h2>Example, Model and Tracking Algorithm</h2>")
240
  model_id = gr.Dropdown(
241
  label="Model",
242
  choices=[
 
200
  with gr.Blocks(title="YOLOv9: Real-time Object Detection", css=".gradio-container {background:lightyellow;}"):
201
  with gr.Row():
202
  with gr.Column():
203
+ gr.HTML("<h2>Input</h2>")
204
  img_path = gr.Image(label="Image", height = 260, width = 410)
205
  vid_path = gr.Video(label="Video", height = 260, width = 410)
206
  #gr.HTML("<img src='flie/img_examples/clasess.png'>")
 
229
  #gr.Examples(['./video_examples/video_1.mp4', './video_examples/video_2.mp4','./video_examples/video_3.mp4','./video_examples/video_4.mp4','./video_examples/video_5.mp4'], inputs=vid_path, label = "Video Example", cache_examples = False)
230
  with gr.Column(min_width = 270):
231
  gr.HTML("<h2>Output</h2>")
232
+ output_image = gr.Image(type="numpy",label="Output Image", height = 260, width = 410)
233
  #df = gr.BarPlot(show_label=False, x="label", y="counts", x_title="Labels", y_title="Counts", vertical=False)
234
+ output_video = gr.Video(label="Output Video", height = 260, width = 410)
235
  #frame_counts_df = gr.LinePlot(show_label=False, x="frame", y="count", x_title="Frame", y_title="Counts", color="label")
236
  fig = gr.Plot(label = "label")
237
  #output_path = gr.Textbox(label="Output path")
238
  with gr.Column():
239
+ gr.HTML("<h2>Configuration</h2>")
240
  model_id = gr.Dropdown(
241
  label="Model",
242
  choices=[