Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -186,4 +186,4 @@ with torch.no_grad():
|
|
186 |
for opt.weights in ['yolov7.pt']:
|
187 |
strip_optimizer(opt.weights)
|
188 |
|
189 |
-
gr.Interface(detect,"
|
|
|
186 |
for opt.weights in ['yolov7.pt']:
|
187 |
strip_optimizer(opt.weights)
|
188 |
|
189 |
+
gr.Interface(detect,gr.Image(type="pil"),"image").launch()
|