Eueuiaa commited on
Commit
682884a
·
verified ·
1 Parent(s): 940bd69

Update api/ltx_server_refactored.py

Browse files
Files changed (1) hide show
  1. api/ltx_server_refactored.py +5 -5
api/ltx_server_refactored.py CHANGED
@@ -351,11 +351,11 @@ class VideoService:
351
  print("-" * 20 + " FIM: _generate_single_chunk_low " + "-"*20)
352
  return latents_bruto
353
 
354
- except Exception as e:
355
- print("-" * 20 + " ERRO: _generate_single_chunk_low --------------------")
356
- traceback.print_exc()
357
- print("-" * 20 + " ----------------------------------------------")
358
- return None
359
  finally:
360
  torch.cuda.empty_cache()
361
  torch.cuda.ipc_collect()
 
351
  print("-" * 20 + " FIM: _generate_single_chunk_low " + "-"*20)
352
  return latents_bruto
353
 
354
+ except Exception as e:
355
+ print("-" * 20 + " ERRO: _generate_single_chunk_low --------------------")
356
+ traceback.print_exc()
357
+ print("-" * 20 + " ----------------------------------------------")
358
+ return None
359
  finally:
360
  torch.cuda.empty_cache()
361
  torch.cuda.ipc_collect()