Update app.py
Browse files
app.py
CHANGED
@@ -243,7 +243,7 @@ def sortFiles(e):
|
|
243 |
e = e.split('/')
|
244 |
return e[len(e)-1]
|
245 |
|
246 |
-
def loadf(f):
|
247 |
if f != None and f[0] != None:
|
248 |
f.sort(key=sortFiles)
|
249 |
fnew = []
|
@@ -253,7 +253,7 @@ def loadf(f):
|
|
253 |
if ftype[len(ftype)-1].split('.')[1] == 'mp4':
|
254 |
fl = sharpest(fl, i)
|
255 |
|
256 |
-
fl = remove_bg(fl)
|
257 |
fnew.append(fl)
|
258 |
|
259 |
return fnew, fnew
|
|
|
243 |
e = e.split('/')
|
244 |
return e[len(e)-1]
|
245 |
|
246 |
+
def loadf(f, s, l, v):
|
247 |
if f != None and f[0] != None:
|
248 |
f.sort(key=sortFiles)
|
249 |
fnew = []
|
|
|
253 |
if ftype[len(ftype)-1].split('.')[1] == 'mp4':
|
254 |
fl = sharpest(fl, i)
|
255 |
|
256 |
+
fl = remove_bg(fl, s, l, v)
|
257 |
fnew.append(fl)
|
258 |
|
259 |
return fnew, fnew
|