Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -125,7 +125,7 @@ def classifyCar(im):
|
|
| 125 |
im2 = Image.fromarray(np.uint8(im)).convert('RGB')
|
| 126 |
label = "No car detected"
|
| 127 |
|
| 128 |
-
|
| 129 |
|
| 130 |
# -- create interface for model ----------------------------------------------------------------------------------------
|
| 131 |
interface = gr.Interface(classifyCar, inputs='image', outputs=['image','label'], cache_examples=False, title='Modernity car classification')
|
|
|
|
| 125 |
im2 = Image.fromarray(np.uint8(im)).convert('RGB')
|
| 126 |
label = "No car detected"
|
| 127 |
|
| 128 |
+
return im2, label
|
| 129 |
|
| 130 |
# -- create interface for model ----------------------------------------------------------------------------------------
|
| 131 |
interface = gr.Interface(classifyCar, inputs='image', outputs=['image','label'], cache_examples=False, title='Modernity car classification')
|