Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -28,14 +28,16 @@ def detect(img):
|
|
28 |
|
29 |
return new_image
|
30 |
|
31 |
-
|
32 |
|
|
|
33 |
|
34 |
-
|
|
|
35 |
|
36 |
iface = gr.Interface(fn=detect,
|
37 |
inputs=gr.inputs.Image(type="numpy",),
|
38 |
outputs=gr.outputs.Image(type="numpy",),
|
39 |
css=css,
|
|
|
40 |
enable_queue=True)
|
41 |
iface.launch(debug=True, inline=True)
|
|
|
28 |
|
29 |
return new_image
|
30 |
|
|
|
31 |
|
32 |
+
examples = ['dog.jpg', 'apple_img.jpg', 'people-driving-cars-city-street.jpg']
|
33 |
|
34 |
+
|
35 |
+
css = ".output-image, .input-image, .image-preview {height: 400px !important}"
|
36 |
|
37 |
iface = gr.Interface(fn=detect,
|
38 |
inputs=gr.inputs.Image(type="numpy",),
|
39 |
outputs=gr.outputs.Image(type="numpy",),
|
40 |
css=css,
|
41 |
+
examples = examples,
|
42 |
enable_queue=True)
|
43 |
iface.launch(debug=True, inline=True)
|