added error handling
Browse files- handler.py +1 -0
handler.py
CHANGED
@@ -4,6 +4,7 @@ import torch
|
|
4 |
import base64
|
5 |
import logging
|
6 |
import numpy as np
|
|
|
7 |
from PIL import Image
|
8 |
from io import BytesIO
|
9 |
import subprocess
|
|
|
4 |
import base64
|
5 |
import logging
|
6 |
import numpy as np
|
7 |
+
import gc
|
8 |
from PIL import Image
|
9 |
from io import BytesIO
|
10 |
import subprocess
|