Imadsarvm commited on
Commit
4f0c85f
·
verified ·
1 Parent(s): 0ce70fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -96,11 +96,11 @@ title = "Background Removal"
96
  description = r"""Background removal model developed by <a href='https://BRIA.AI' target='_blank'><b>BRIA.AI</b></a>, trained on a carefully selected dataset and is available as an open-source model for non-commercial use.<br>
97
  For test upload your image and wait. Read more at model card <a href='https://huggingface.co/briaai/RMBG-1.4' target='_blank'><b>briaai/RMBG-1.4</b></a>.<br>
98
  """
99
- examples = [['./input.jpg'],]
100
  # output = ImageSlider(position=0.5,label='Image without background', type="pil", show_download_button=True)
101
  # demo = gr.Interface(fn=process,inputs="image", outputs=output, examples=examples, title=title, description=description)
102
 
103
- demo = gr.Interface(fn=process,inputs=gr.Textbox(label="Text or Image URL", interactive=True), outputs="image", examples=examples, title=title, description=description)
104
 
105
  if __name__ == "__main__":
106
  demo.launch(share=False)
 
96
  description = r"""Background removal model developed by <a href='https://BRIA.AI' target='_blank'><b>BRIA.AI</b></a>, trained on a carefully selected dataset and is available as an open-source model for non-commercial use.<br>
97
  For test upload your image and wait. Read more at model card <a href='https://huggingface.co/briaai/RMBG-1.4' target='_blank'><b>briaai/RMBG-1.4</b></a>.<br>
98
  """
99
+ #examples = [['./input.jpg'],]
100
  # output = ImageSlider(position=0.5,label='Image without background', type="pil", show_download_button=True)
101
  # demo = gr.Interface(fn=process,inputs="image", outputs=output, examples=examples, title=title, description=description)
102
 
103
+ demo = gr.Interface(fn=process,inputs=gr.Textbox(label="Text or Image URL", interactive=True), outputs="image", title=title, description=description)
104
 
105
  if __name__ == "__main__":
106
  demo.launch(share=False)