Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -112,7 +112,7 @@ def predict2(image_np,threshold):
|
|
| 112 |
category_index,
|
| 113 |
use_normalized_coordinates=True,
|
| 114 |
max_boxes_to_draw=200,
|
| 115 |
-
min_score_thresh=float(threshold)
|
| 116 |
agnostic_mode=False,
|
| 117 |
line_thickness=2)
|
| 118 |
|
|
@@ -180,7 +180,7 @@ gr.Interface(fn=predict,
|
|
| 180 |
theme=gr.themes.Soft(primary_hue="blue", secondary_hue="sky"),
|
| 181 |
#cache_examples = True,
|
| 182 |
#examples=[["test_samples/image489.png",None,0.55], ["test_samples/image825.png",None,0.55], ["test_samples/image833.png",None,0.55], ["test_samples/image846.png",None,0.55], [None,"test_samples/test_video.mp4",0.55]]
|
| 183 |
-
examples=[["test_samples/image489.png",None,
|
| 184 |
).launch(share=True)
|
| 185 |
|
| 186 |
# gr.Interface(fn=video_fn,
|
|
|
|
| 112 |
category_index,
|
| 113 |
use_normalized_coordinates=True,
|
| 114 |
max_boxes_to_draw=200,
|
| 115 |
+
min_score_thresh=float(threshold),
|
| 116 |
agnostic_mode=False,
|
| 117 |
line_thickness=2)
|
| 118 |
|
|
|
|
| 180 |
theme=gr.themes.Soft(primary_hue="blue", secondary_hue="sky"),
|
| 181 |
#cache_examples = True,
|
| 182 |
#examples=[["test_samples/image489.png",None,0.55], ["test_samples/image825.png",None,0.55], ["test_samples/image833.png",None,0.55], ["test_samples/image846.png",None,0.55], [None,"test_samples/test_video.mp4",0.55]]
|
| 183 |
+
examples=[["test_samples/image489.png",None,0.55]],
|
| 184 |
).launch(share=True)
|
| 185 |
|
| 186 |
# gr.Interface(fn=video_fn,
|