dhanushreddy29 commited on
Commit
39ff281
·
verified ·
1 Parent(s): 014c53c

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -1
main.py CHANGED
@@ -10,6 +10,7 @@ def remove_background(input_image):
10
  output_image = remove(input_image)
11
  return output_image
12
 
 
13
  interface = gr.Interface(
14
  fn=remove_background,
15
  inputs=gr.Image(type="pil"),
@@ -25,4 +26,4 @@ interface = gr.Interface(
25
  )
26
 
27
  if __name__ == "__main__":
28
- interface.launch(enable_queue=True)
 
10
  output_image = remove(input_image)
11
  return output_image
12
 
13
+ # Create the Gradio interface using the new syntax
14
  interface = gr.Interface(
15
  fn=remove_background,
16
  inputs=gr.Image(type="pil"),
 
26
  )
27
 
28
  if __name__ == "__main__":
29
+ interface.launch()