sergeipetrov
commited on
Commit
•
2c298e6
1
Parent(s):
426d898
Update handler.py
Browse files- handler.py +2 -0
handler.py
CHANGED
@@ -53,3 +53,5 @@ class EndpointHandler:
|
|
53 |
del inputs
|
54 |
gc.collect()
|
55 |
torch.cuda.empty_cache()
|
|
|
|
|
|
53 |
del inputs
|
54 |
gc.collect()
|
55 |
torch.cuda.empty_cache()
|
56 |
+
|
57 |
+
return {"error": str(e)}
|