crockrocks commited on
Commit
c888cb4
·
1 Parent(s): 89fc034

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -23,9 +23,9 @@ def detect_objects(input_image):
23
  return output_image, f"Objects in the image: {len(cnt)}"
24
 
25
  # Define a Gradio interface
26
- input_image = gr.inputs.Image()
27
- output_image = gr.outputs.Image()
28
- output_text = gr.outputs.Text()
29
 
30
  gr.Interface(
31
  fn=detect_objects,
 
23
  return output_image, f"Objects in the image: {len(cnt)}"
24
 
25
  # Define a Gradio interface
26
+ input_image = gr.Image()
27
+ output_image = gr.Image()
28
+ output_text = gr.Text()
29
 
30
  gr.Interface(
31
  fn=detect_objects,