Spaces:
Running
on
Zero
Running
on
Zero
amirgame197
commited on
Commit
•
cefe7bc
1
Parent(s):
d82698b
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ from transparent_background import Remover
|
|
16 |
def doo(video, color, mode, progress=gr.Progress()):
|
17 |
print(str(color))
|
18 |
if str(color).startswith('#'):
|
19 |
-
|
20 |
rgb = tuple(int(color[i:i+2], 16) for i in (0, 2, 4))
|
21 |
color = str(list(rgb))
|
22 |
elif str(color).startswith('rgba'):
|
|
|
16 |
def doo(video, color, mode, progress=gr.Progress()):
|
17 |
print(str(color))
|
18 |
if str(color).startswith('#'):
|
19 |
+
color = color.lstrip('#')
|
20 |
rgb = tuple(int(color[i:i+2], 16) for i in (0, 2, 4))
|
21 |
color = str(list(rgb))
|
22 |
elif str(color).startswith('rgba'):
|