Update app.py
Browse files
app.py
CHANGED
|
@@ -30,11 +30,11 @@ spaces=[
|
|
| 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(
|
| 38 |
out1 = gr.Pil.update(value=result,visible=True)
|
| 39 |
out2 = gr.Accordion.update(label="Original Image",open=False)
|
| 40 |
else:
|
|
|
|
| 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)
|
| 38 |
out1 = gr.Pil.update(value=result,visible=True)
|
| 39 |
out2 = gr.Accordion.update(label="Original Image",open=False)
|
| 40 |
else:
|