Spaces:
Sleeping
Sleeping
Clement Vachet
commited on
Commit
•
b0a21e7
1
Parent(s):
3a4ff58
Enable multiple models
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ import matplotlib.pyplot as plt
|
|
10 |
import io
|
11 |
import os
|
12 |
|
13 |
-
list_models = ["facebook/detr-resnet-50"]
|
14 |
list_models_simple = [os.path.basename(model) for model in list_models]
|
15 |
|
16 |
COLORS = [
|
@@ -81,7 +81,7 @@ def demo():
|
|
81 |
|
82 |
with gr.Row():
|
83 |
model_id = gr.Radio(list_models, \
|
84 |
-
label="Detection models", value=list_models[
|
85 |
with gr.Row():
|
86 |
threshold = gr.Slider(0, 1.0, value=0.9, label='Detection threshold', info="Choose your detection threshold")
|
87 |
|
|
|
10 |
import io
|
11 |
import os
|
12 |
|
13 |
+
list_models = ["facebook/detr-resnet-50", "facebook/detr-resnet-101", "hustvl/yolos-tiny", "hustvl/yolos-small"]
|
14 |
list_models_simple = [os.path.basename(model) for model in list_models]
|
15 |
|
16 |
COLORS = [
|
|
|
81 |
|
82 |
with gr.Row():
|
83 |
model_id = gr.Radio(list_models, \
|
84 |
+
label="Detection models", value=list_models[3], type="index", info="Choose your detection model")
|
85 |
with gr.Row():
|
86 |
threshold = gr.Slider(0, 1.0, value=0.9, label='Detection threshold', info="Choose your detection threshold")
|
87 |
|