Update handler.py
Browse files- handler.py +2 -0
handler.py
CHANGED
@@ -3,6 +3,7 @@ from typing import Dict, Any, Optional
|
|
3 |
import base64
|
4 |
import logging
|
5 |
import random
|
|
|
6 |
import torch
|
7 |
from diffusers import HunyuanVideoPipeline
|
8 |
from varnish import Varnish
|
@@ -243,5 +244,6 @@ class EndpointHandler:
|
|
243 |
}
|
244 |
|
245 |
except Exception as e:
|
|
|
246 |
logger.error(f"Error generating video: {str(e)}")
|
247 |
raise RuntimeError(f"Failed to generate video: {str(e)}")
|
|
|
3 |
import base64
|
4 |
import logging
|
5 |
import random
|
6 |
+
import traceback
|
7 |
import torch
|
8 |
from diffusers import HunyuanVideoPipeline
|
9 |
from varnish import Varnish
|
|
|
244 |
}
|
245 |
|
246 |
except Exception as e:
|
247 |
+
traceback.print_stack()
|
248 |
logger.error(f"Error generating video: {str(e)}")
|
249 |
raise RuntimeError(f"Failed to generate video: {str(e)}")
|