Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import requests
|
|
| 4 |
import random
|
| 5 |
r = requests.get(f'https://huggingface.co/spaces/xp3857/bin/raw/main/css.css')
|
| 6 |
css = r.text
|
| 7 |
-
name2 = "xp3857/bg-rem
|
| 8 |
spaces=[
|
| 9 |
gr.Interface.load(f"spaces/{name2}"),
|
| 10 |
gr.Interface.load(f"spaces/{name2}"),
|
|
@@ -29,9 +29,6 @@ spaces=[
|
|
| 29 |
]
|
| 30 |
def rem_bg(input):
|
| 31 |
if input !=None:
|
| 32 |
-
#im1 = Image.open(f"input}")
|
| 33 |
-
#send = input.save("tmp.png")
|
| 34 |
-
|
| 35 |
rn = random.randint(0, 19)
|
| 36 |
space=spaces[rn]
|
| 37 |
result=space(input)
|
|
|
|
| 4 |
import random
|
| 5 |
r = requests.get(f'https://huggingface.co/spaces/xp3857/bin/raw/main/css.css')
|
| 6 |
css = r.text
|
| 7 |
+
name2 = "xp3857/bg-rem"
|
| 8 |
spaces=[
|
| 9 |
gr.Interface.load(f"spaces/{name2}"),
|
| 10 |
gr.Interface.load(f"spaces/{name2}"),
|
|
|
|
| 29 |
]
|
| 30 |
def rem_bg(input):
|
| 31 |
if input !=None:
|
|
|
|
|
|
|
|
|
|
| 32 |
rn = random.randint(0, 19)
|
| 33 |
space=spaces[rn]
|
| 34 |
result=space(input)
|