ilass commited on
Commit
510ad6c
·
1 Parent(s): 65a45a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -35,18 +35,18 @@ with gr.Blocks() as demo:
35
 
36
  # Pfad zu Ihren Demo-Bildern
37
  demo_images = ["demoImages/demo01.jpg", "demoImages/demo02.jpg", "demoImages/demo03.jpg", "demoImages/demo04.jpg"]
38
-
39
- input_img = gr.Image(type='pil')
40
- out_img = gr.Image(type='pil')
41
-
42
- button = gr.Button("Detect",variant="primary")
43
- button.click(detect,inputs=input_img, outputs=out_img)
44
 
45
  gr.Examples(examples=[[img] for img in demo_images],
46
  inputs=[input_img],
47
  outputs=[out_img],
48
  fn=detect)
49
 
 
 
 
 
 
 
50
  gr.Markdown("## Output")
51
 
52
  with gr.Tab("Url"):
 
35
 
36
  # Pfad zu Ihren Demo-Bildern
37
  demo_images = ["demoImages/demo01.jpg", "demoImages/demo02.jpg", "demoImages/demo03.jpg", "demoImages/demo04.jpg"]
 
 
 
 
 
 
38
 
39
  gr.Examples(examples=[[img] for img in demo_images],
40
  inputs=[input_img],
41
  outputs=[out_img],
42
  fn=detect)
43
 
44
+ input_img = gr.Image(type='pil')
45
+ out_img = gr.Image(type='pil')
46
+
47
+ button = gr.Button("Detect",variant="primary")
48
+ button.click(detect,inputs=input_img, outputs=out_img)
49
+
50
  gr.Markdown("## Output")
51
 
52
  with gr.Tab("Url"):