Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ def gradio_wrapper(img):
|
|
| 20 |
global model
|
| 21 |
#print(np.shape(img))
|
| 22 |
results = model(img,show = True) # predict on an image
|
| 23 |
-
return results[
|
| 24 |
demo = gr.Interface(
|
| 25 |
gradio_wrapper,
|
| 26 |
#gr.Image(source="webcam", streaming=True, flip=True),
|
|
|
|
| 20 |
global model
|
| 21 |
#print(np.shape(img))
|
| 22 |
results = model(img,show = True) # predict on an image
|
| 23 |
+
return results[0]
|
| 24 |
demo = gr.Interface(
|
| 25 |
gradio_wrapper,
|
| 26 |
#gr.Image(source="webcam", streaming=True, flip=True),
|