Spaces:
				
			
			
	
			
			
		Build error
		
	
	
	
			
			
	
	
	
	
		
		
		Build error
		
	
		Moibe
		
	commited on
		
		
					Commit 
							
							路
						
						af881b4
	
1
								Parent(s):
							
							767439d
								
Gone all time.sleeps
Browse files
    	
        app.py
    CHANGED
    
    | @@ -18,7 +18,6 @@ def save_images_as_zip(path_foto, filename, plataforma): | |
| 18 | 
             
                        # path_foto_zippable = str(path_foto) + "/" + foto
         | 
| 19 | 
             
                        path_foto_zippable = str(path_foto) + (os.sep if plataforma == "local" else "/") + foto
         | 
| 20 | 
             
                        print("La ruta textual final de esa foto en particular es: ", path_foto_zippable)
         | 
| 21 | 
            -
                        time.sleep(1)
         | 
| 22 | 
             
                        # ruta = pathlib.Path(path_foto_zippable)
         | 
| 23 | 
             
                        # zip_file.write(ruta)
         | 
| 24 | 
             
                        ruta = os.path.basename(path_foto_zippable)
         | 
| @@ -50,7 +49,7 @@ def greet(input1, input2): | |
| 50 | 
             
                    print("La plataforma en la que basaremos la divisi贸n es HuggingFace.")
         | 
| 51 | 
             
                    path_parts = path_video.split("/")
         | 
| 52 | 
             
                    print("Esto es parth_paths, de aqu铆 lo puedes obtener?: ", path_parts)
         | 
| 53 | 
            -
                    time.sleep( | 
| 54 |  | 
| 55 |  | 
| 56 | 
             
                print("Imprimiendo path_parts: ", path_parts)
         | 
| @@ -122,12 +121,12 @@ def greet(input1, input2): | |
| 122 | 
             
                output = proc.read()
         | 
| 123 |  | 
| 124 | 
             
                print("Output (resultado de la ejecuci贸n del c贸digo):")
         | 
| 125 | 
            -
                time.sleep( | 
| 126 | 
             
                print(output)
         | 
| 127 | 
             
                print("Termin贸 la impresi贸n del output...")
         | 
| 128 |  | 
| 129 | 
             
                print("脡ste es el momento en el que se creo result, revisar...")
         | 
| 130 | 
            -
                time.sleep( | 
| 131 |  | 
| 132 | 
             
                print("Ahora estamos imprimiendo las rutas para ver si apareci贸 una nueva:")
         | 
| 133 | 
             
                files = os.listdir(path_general)
         | 
| @@ -140,7 +139,7 @@ def greet(input1, input2): | |
| 140 | 
             
                #nom_video = "whitebeauty"
         | 
| 141 | 
             
                path_foto = pathlib.Path(path_particular + "/temp/" + nom_video + "/")
         | 
| 142 | 
             
                print("脡ste es el path foto: ", path_foto)
         | 
| 143 | 
            -
                path_result = str(path_foto) + "temp.mp4"
         | 
| 144 | 
             
                print("Y 茅ste es el path del resultado: ", path_result)
         | 
| 145 |  | 
| 146 |  | 
|  | |
| 18 | 
             
                        # path_foto_zippable = str(path_foto) + "/" + foto
         | 
| 19 | 
             
                        path_foto_zippable = str(path_foto) + (os.sep if plataforma == "local" else "/") + foto
         | 
| 20 | 
             
                        print("La ruta textual final de esa foto en particular es: ", path_foto_zippable)
         | 
|  | |
| 21 | 
             
                        # ruta = pathlib.Path(path_foto_zippable)
         | 
| 22 | 
             
                        # zip_file.write(ruta)
         | 
| 23 | 
             
                        ruta = os.path.basename(path_foto_zippable)
         | 
|  | |
| 49 | 
             
                    print("La plataforma en la que basaremos la divisi贸n es HuggingFace.")
         | 
| 50 | 
             
                    path_parts = path_video.split("/")
         | 
| 51 | 
             
                    print("Esto es parth_paths, de aqu铆 lo puedes obtener?: ", path_parts)
         | 
| 52 | 
            +
                    time.sleep(1)
         | 
| 53 |  | 
| 54 |  | 
| 55 | 
             
                print("Imprimiendo path_parts: ", path_parts)
         | 
|  | |
| 121 | 
             
                output = proc.read()
         | 
| 122 |  | 
| 123 | 
             
                print("Output (resultado de la ejecuci贸n del c贸digo):")
         | 
| 124 | 
            +
                time.sleep(1)
         | 
| 125 | 
             
                print(output)
         | 
| 126 | 
             
                print("Termin贸 la impresi贸n del output...")
         | 
| 127 |  | 
| 128 | 
             
                print("脡ste es el momento en el que se creo result, revisar...")
         | 
| 129 | 
            +
                time.sleep(1)
         | 
| 130 |  | 
| 131 | 
             
                print("Ahora estamos imprimiendo las rutas para ver si apareci贸 una nueva:")
         | 
| 132 | 
             
                files = os.listdir(path_general)
         | 
|  | |
| 139 | 
             
                #nom_video = "whitebeauty"
         | 
| 140 | 
             
                path_foto = pathlib.Path(path_particular + "/temp/" + nom_video + "/")
         | 
| 141 | 
             
                print("脡ste es el path foto: ", path_foto)
         | 
| 142 | 
            +
                path_result = str(path_foto) + "/temp.mp4"
         | 
| 143 | 
             
                print("Y 茅ste es el path del resultado: ", path_result)
         | 
| 144 |  | 
| 145 |  |