Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ def object_detection(image):
|
|
| 22 |
draw.text((box[0], box[1]), f"{model.config.id2label[label.item()]}: {round(score.item(), 3)}", fill="red")
|
| 23 |
|
| 24 |
return image
|
| 25 |
-
|
| 26 |
iface = gr.Interface(
|
| 27 |
fn=object_detection,
|
| 28 |
inputs=gr.Image(type="pil"),
|
|
|
|
| 22 |
draw.text((box[0], box[1]), f"{model.config.id2label[label.item()]}: {round(score.item(), 3)}", fill="red")
|
| 23 |
|
| 24 |
return image
|
| 25 |
+
|
| 26 |
iface = gr.Interface(
|
| 27 |
fn=object_detection,
|
| 28 |
inputs=gr.Image(type="pil"),
|