Spaces:
Sleeping
Sleeping
Moibe
commited on
Commit
·
52e1485
1
Parent(s):
4296c87
Grab images correction
Browse files
app.py
CHANGED
|
@@ -70,12 +70,6 @@ def greet(input1, input2):
|
|
| 70 |
path_foto = pathlib.Path(path_particular + "/temp/" + nom_video + "/")
|
| 71 |
print("Éste es el path foto: ", path_foto)
|
| 72 |
|
| 73 |
-
for filename in os.listdir(path_foto):
|
| 74 |
-
if filename.endswith(".png"):
|
| 75 |
-
path = os.path.join(path_foto, filename)
|
| 76 |
-
image = Image.open(path)
|
| 77 |
-
images.append(image)
|
| 78 |
-
|
| 79 |
print("Esto es la lista de imagenes: ", images)
|
| 80 |
|
| 81 |
files = os.listdir(path_general)
|
|
@@ -136,6 +130,12 @@ def greet(input1, input2):
|
|
| 136 |
print("Estos son los files que hay:")
|
| 137 |
print(files)
|
| 138 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 139 |
if modo == "video":
|
| 140 |
#Para video
|
| 141 |
path = pathlib.Path("result.mp4")
|
|
|
|
| 70 |
path_foto = pathlib.Path(path_particular + "/temp/" + nom_video + "/")
|
| 71 |
print("Éste es el path foto: ", path_foto)
|
| 72 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
print("Esto es la lista de imagenes: ", images)
|
| 74 |
|
| 75 |
files = os.listdir(path_general)
|
|
|
|
| 130 |
print("Estos son los files que hay:")
|
| 131 |
print(files)
|
| 132 |
|
| 133 |
+
for filename in os.listdir(path_foto):
|
| 134 |
+
if filename.endswith(".png"):
|
| 135 |
+
path = os.path.join(path_foto, filename)
|
| 136 |
+
image = Image.open(path)
|
| 137 |
+
images.append(image)
|
| 138 |
+
|
| 139 |
if modo == "video":
|
| 140 |
#Para video
|
| 141 |
path = pathlib.Path("result.mp4")
|