sahapranta commited on
Commit
d9ea75f
1 Parent(s): 6f92343

commented examples

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -102,13 +102,13 @@ title = "Background Remover"
102
  description = "You can remove the background from a given image. To use it, simply upload your image."
103
  article = ""
104
 
105
- url = "https://huggingface.co/datasets/nateraw/background-remover-files/resolve/main/twitter_profile_pic.jpeg"
106
- image = Image.open(requests.get(url, stream=True).raw)
107
- image.save('twitter_profile_pic.jpg')
108
 
109
- url = "https://upload.wikimedia.org/wikipedia/commons/8/8d/President_Barack_Obama.jpg"
110
- image = Image.open(requests.get(url, stream=True).raw)
111
- image.save('obama.jpg')
112
 
113
  interface = gr.Interface(
114
  fn=main,
 
102
  description = "You can remove the background from a given image. To use it, simply upload your image."
103
  article = ""
104
 
105
+ # url = "https://huggingface.co/datasets/nateraw/background-remover-files/resolve/main/twitter_profile_pic.jpeg"
106
+ # image = Image.open(requests.get(url, stream=True).raw)
107
+ # image.save('twitter_profile_pic.jpg')
108
 
109
+ # url = "https://upload.wikimedia.org/wikipedia/commons/8/8d/President_Barack_Obama.jpg"
110
+ # image = Image.open(requests.get(url, stream=True).raw)
111
+ # image.save('obama.jpg')
112
 
113
  interface = gr.Interface(
114
  fn=main,