Spaces:
Runtime error
Runtime error
Moibe
commited on
Commit
•
163c468
1
Parent(s):
c611def
Try fix to image
Browse files
app.py
CHANGED
@@ -58,32 +58,27 @@ def perform(input1, input2, input3):
|
|
58 |
if plataforma == "local":
|
59 |
#Para local.
|
60 |
path_parts = path_video.split("\\")
|
61 |
-
else:
|
62 |
#Para HuggingFace
|
63 |
-
|
64 |
-
|
|
|
65 |
|
66 |
#Aquí obtendremos nom_video
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
path_general = "/".join(path_parts[0:len(path_parts) - 2])
|
74 |
-
|
75 |
path_general = path_general.replace("\\", "/")
|
76 |
path_particular = path_particular.replace("\\", "/")
|
77 |
-
|
78 |
print("Path general: ", path_general)
|
79 |
print("Path general: ", path_particular)
|
80 |
-
|
81 |
path = pathlib.Path("result.mp4")
|
82 |
-
|
83 |
files = os.listdir(path_general)
|
84 |
print("Estos son los files que hay:")
|
85 |
print(files)
|
86 |
-
|
87 |
ext_imagen = "png"
|
88 |
ext_video = "mp4"
|
89 |
|
|
|
58 |
if plataforma == "local":
|
59 |
#Para local.
|
60 |
path_parts = path_video.split("\\")
|
61 |
+
#else:
|
62 |
#Para HuggingFace
|
63 |
+
#Creo que no va en imagen.
|
64 |
+
# print("La plataforma en la que basaremos la división es HuggingFace.")
|
65 |
+
# path_parts = path_video.split("/")
|
66 |
|
67 |
#Aquí obtendremos nom_video
|
68 |
+
#Creo no va en imagen
|
69 |
+
#filename = path_parts[-1]
|
70 |
+
#nom_video = filename[:-4]
|
71 |
+
#print("Esto es filename alias nom_video: ", nom_video)
|
72 |
+
#path_particular = "/".join(path_parts[0:len(path_parts) - 1])
|
73 |
+
#path_general = "/".join(path_parts[0:len(path_parts) - 2])
|
|
|
|
|
74 |
path_general = path_general.replace("\\", "/")
|
75 |
path_particular = path_particular.replace("\\", "/")
|
|
|
76 |
print("Path general: ", path_general)
|
77 |
print("Path general: ", path_particular)
|
|
|
78 |
path = pathlib.Path("result.mp4")
|
|
|
79 |
files = os.listdir(path_general)
|
80 |
print("Estos son los files que hay:")
|
81 |
print(files)
|
|
|
82 |
ext_imagen = "png"
|
83 |
ext_video = "mp4"
|
84 |
|