Moibe commited on
Commit
e9712f9
·
1 Parent(s): 9afcbd8

Check type

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -132,6 +132,7 @@ async def echo_random_file(files: List[UploadFile] = File(...)):
132
  resultado_cinema = await motion.cinema(temp_file_paths)
133
 
134
  print("182.- Resultado es: ", resultado_cinema)
 
135
 
136
  # 3. Manejar el resultado de la función 'cinema'
137
  if isinstance(resultado_cinema, str):
@@ -174,7 +175,7 @@ async def echo_random_file(files: List[UploadFile] = File(...)):
174
  for path in temp_file_paths:
175
  if os.path.exists(path):
176
  try:
177
- os.remove(path)
178
  print(f"Archivo temporal eliminado: {path}")
179
  except Exception as cleanup_e:
180
  print(f"Error al eliminar el archivo temporal {path}: {cleanup_e}")
 
132
  resultado_cinema = await motion.cinema(temp_file_paths)
133
 
134
  print("182.- Resultado es: ", resultado_cinema)
135
+ print("Y su tipo es: ", type(resultado_cinema))
136
 
137
  # 3. Manejar el resultado de la función 'cinema'
138
  if isinstance(resultado_cinema, str):
 
175
  for path in temp_file_paths:
176
  if os.path.exists(path):
177
  try:
178
+ #os.remove(path)
179
  print(f"Archivo temporal eliminado: {path}")
180
  except Exception as cleanup_e:
181
  print(f"Error al eliminar el archivo temporal {path}: {cleanup_e}")