zhiweili commited on
Commit
f5952bc
·
1 Parent(s): 240c550

print exception stack

Browse files
Files changed (1) hide show
  1. app_video.py +0 -5
app_video.py CHANGED
@@ -48,11 +48,6 @@ def create_demo() -> gr.Blocks:
48
  num_inference_steps=num_inference_steps,
49
  callback_on_step_end=gradio_progress_callback,
50
  ).frames[0]
51
- except Exception as e:
52
- raise gr.Error(
53
- f"An error occurred while generating the video. Please try again. Error: {e}",
54
- duration=5,
55
- )
56
  finally:
57
  torch.cuda.empty_cache()
58
  gc.collect()
 
48
  num_inference_steps=num_inference_steps,
49
  callback_on_step_end=gradio_progress_callback,
50
  ).frames[0]
 
 
 
 
 
51
  finally:
52
  torch.cuda.empty_cache()
53
  gc.collect()