Spaces:
Sleeping
Sleeping
sergey21000
commited on
Commit
•
41e4f3c
1
Parent(s):
070544c
Update app.py
Browse files
app.py
CHANGED
@@ -108,7 +108,10 @@ with gr.Blocks(css=css) as demo:
|
|
108 |
with gr.Row():
|
109 |
with gr.Column():
|
110 |
file_path = gr.File(file_types=['image', 'video'], file_count='single', label='Select image or video')
|
111 |
-
|
|
|
|
|
|
|
112 |
model_name = gr.Radio(choices=MODEL_NAMES, value=MODEL_NAMES[0], label='Select YOLO model')
|
113 |
conf = gr.Slider(0, 1, value=0.5, step=0.05, label='Confidence')
|
114 |
iou = gr.Slider(0, 1, value=0.7, step=0.1, label='IOU')
|
|
|
108 |
with gr.Row():
|
109 |
with gr.Column():
|
110 |
file_path = gr.File(file_types=['image', 'video'], file_count='single', label='Select image or video')
|
111 |
+
|
112 |
+
# file_link = gr.Textbox(label='Direct link to image or YouTube link')
|
113 |
+
file_link = gr.State(None)
|
114 |
+
|
115 |
model_name = gr.Radio(choices=MODEL_NAMES, value=MODEL_NAMES[0], label='Select YOLO model')
|
116 |
conf = gr.Slider(0, 1, value=0.5, step=0.05, label='Confidence')
|
117 |
iou = gr.Slider(0, 1, value=0.7, step=0.1, label='IOU')
|