voice-changer/server/Exceptions.py

13 lines
358 B
Python
Raw Normal View History

2023-04-17 03:45:12 +03:00
class NoModeLoadedException(Exception):
def __init__(self, framework):
self.framework = framework
def __str__(self):
return repr(f"No model for {self.framework} loaded. Please confirm the model uploaded.")
2023-04-18 21:06:45 +03:00
class ONNXInputArgumentException(Exception):
def __str__(self):
return repr(f"ONNX received invalid argument.")