lopesdri commited on
Commit
e009936
·
1 Parent(s): 128649f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -28,14 +28,16 @@ def detect(img):
28
 
29
  return new_image
30
 
31
-
32
 
 
33
 
34
- css = ".output-image, .input-image, .image-preview {height: 600px !important}"
 
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)