JaMe76 commited on
Commit
423104f
1 Parent(s): 7643387

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -22,15 +22,12 @@ def analyze_image(img):
22
 
23
  return dp.viz(show_cells=False)
24
 
25
- inputs = gr.inputs.Image(type='pil', label="Original Image")
26
- outputs = gr.outputs.Image(type="pil", label="Output Image")
27
 
28
  title = "Deepdoctection"
29
  description = ""
30
 
31
- examples = [
32
- ['sample_1.jpg'],
33
- ['sample_2.png']
34
- ]
35
 
36
  gr.Interface(analyze_image, inputs, outputs, title=title, description=description, examples=examples).launch()
 
22
 
23
  return dp.viz(show_cells=False)
24
 
25
+ inputs = gr.inputs.Image(type='numpy', invert_colors=True, label="Original Image")
26
+ outputs = gr.outputs.Image(type="numpy", label="Output Image")
27
 
28
  title = "Deepdoctection"
29
  description = ""
30
 
31
+ examples = [['sample_1.jpg'],['sample_2.png']]
 
 
 
32
 
33
  gr.Interface(analyze_image, inputs, outputs, title=title, description=description, examples=examples).launch()