Update app.py
Browse files
app.py
CHANGED
@@ -30,9 +30,7 @@ def detect_objects_in_frame(image, target):
|
|
30 |
|
31 |
i = 0
|
32 |
text = texts[i]
|
33 |
-
boxes = results[i]["boxes"]
|
34 |
-
scores = results[i]["scores"]
|
35 |
-
labels = results[i]["labels"]
|
36 |
|
37 |
for box, score, label in zip(boxes, scores, labels):
|
38 |
if score.item() >= 0.25:
|
@@ -136,4 +134,4 @@ def gradio_app():
|
|
136 |
|
137 |
if __name__ == "__main__":
|
138 |
app = gradio_app()
|
139 |
-
app.launch(share=True)
|
|
|
30 |
|
31 |
i = 0
|
32 |
text = texts[i]
|
33 |
+
boxes, scores, labels = results[i]["boxes"], results[i]["scores"], results[i]["labels"]
|
|
|
|
|
34 |
|
35 |
for box, score, label in zip(boxes, scores, labels):
|
36 |
if score.item() >= 0.25:
|
|
|
134 |
|
135 |
if __name__ == "__main__":
|
136 |
app = gradio_app()
|
137 |
+
app.launch(share=True)
|