Spaces:
Running
Running
shriarul5273
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -146,8 +146,8 @@ with gr.Blocks() as demo:
|
|
146 |
with gr.Tab("Image"):
|
147 |
gr.Markdown("## YOLOv7 Inference on Image")
|
148 |
with gr.Row():
|
149 |
-
image_input = gr.Image(type='pil', label="Input Image",
|
150 |
-
image_output = gr.Image(type='pil', label="Output Image",
|
151 |
fps_image = gr.Number(0,label='FPS')
|
152 |
image_drop = gr.Dropdown(choices=models,value=models[0])
|
153 |
image_iou_threshold = gr.Slider(label="IOU Threshold",interactive=True, minimum=0.0, maximum=1.0, value=0.45)
|
@@ -157,7 +157,7 @@ with gr.Blocks() as demo:
|
|
157 |
with gr.Tab("Video"):
|
158 |
gr.Markdown("## YOLOv7 Inference on Video")
|
159 |
with gr.Row():
|
160 |
-
video_input = gr.Video(type='pil', label="Input Image",
|
161 |
video_output = gr.Video(type="pil", label="Output Image",format="mp4")
|
162 |
fps_video = gr.Number(0,label='FPS')
|
163 |
video_drop = gr.Dropdown(choices=models,value=models[0])
|
|
|
146 |
with gr.Tab("Image"):
|
147 |
gr.Markdown("## YOLOv7 Inference on Image")
|
148 |
with gr.Row():
|
149 |
+
image_input = gr.Image(type='pil', label="Input Image", sources="upload")
|
150 |
+
image_output = gr.Image(type='pil', label="Output Image", sources="upload")
|
151 |
fps_image = gr.Number(0,label='FPS')
|
152 |
image_drop = gr.Dropdown(choices=models,value=models[0])
|
153 |
image_iou_threshold = gr.Slider(label="IOU Threshold",interactive=True, minimum=0.0, maximum=1.0, value=0.45)
|
|
|
157 |
with gr.Tab("Video"):
|
158 |
gr.Markdown("## YOLOv7 Inference on Video")
|
159 |
with gr.Row():
|
160 |
+
video_input = gr.Video(type='pil', label="Input Image", sources="upload")
|
161 |
video_output = gr.Video(type="pil", label="Output Image",format="mp4")
|
162 |
fps_video = gr.Number(0,label='FPS')
|
163 |
video_drop = gr.Dropdown(choices=models,value=models[0])
|