fffiloni commited on
Commit
3ea24a6
·
verified ·
1 Parent(s): 9f95f84

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -61,7 +61,7 @@ def infer(image_in):
61
 
62
  cv2.imwrite("Image_result.png", img)
63
 
64
- return "Image_result.png"
65
 
66
  gr.Interface(
67
  fn=infer,
@@ -69,5 +69,12 @@ gr.Interface(
69
  sources=["upload"],
70
  type="filepath"
71
  ),
72
- outputs=gr.Image()
 
 
 
 
 
 
 
73
  ).launch()
 
61
 
62
  cv2.imwrite("Image_result.png", img)
63
 
64
+ return "Image_result.png", "1_gray.png", "2_blur.png", "3_canny.png", "4_dilate.png", "5_erode.png"
65
 
66
  gr.Interface(
67
  fn=infer,
 
69
  sources=["upload"],
70
  type="filepath"
71
  ),
72
+ outputs=[
73
+ gr.Image(),
74
+ gr.Image(),
75
+ gr.Image(),
76
+ gr.Image(),
77
+ gr.Image(),
78
+ gr.Image(),
79
+ ]
80
  ).launch()