ilass commited on
Commit
006be4c
·
1 Parent(s): 18befeb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -31,19 +31,19 @@ def detect(img):
31
  with gr.Blocks() as demo:
32
 
33
  with gr.Tab("Upload"):
34
- gr.Markdown("# foodServed, drinkServed, person, V0.0.8") # Dieser Text wird am Anfang des Tabs angezeigt.
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
 
 
31
  with gr.Blocks() as demo:
32
 
33
  with gr.Tab("Upload"):
34
+ gr.Markdown("# foodServed, drinkServed, person, V0.0.9") # Dieser Text wird am Anfang des Tabs angezeigt.
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
  gr.Examples(examples=[[img] for img in demo_images],
43
  inputs=[input_img],
44
  outputs=[out_img],
45
  fn=detect)
46
 
 
 
 
47
  button = gr.Button("Detect",variant="primary")
48
  button.click(detect,inputs=input_img, outputs=out_img)
49