Spaces:
Paused
Paused
mock
Browse files
api/question_answering/mocks.py
CHANGED
|
@@ -23,8 +23,6 @@ class MockLocalBinaryModel(LLM):
|
|
| 23 |
def __init__(self, model_id: str = None):
|
| 24 |
super().__init__()
|
| 25 |
self.model_path = f'bot/question_answering/{model_id}'
|
| 26 |
-
if not os.path.exists(self.model_path):
|
| 27 |
-
raise ValueError(f'{self.model_path} does not exist')
|
| 28 |
|
| 29 |
|
| 30 |
def _call(self, prompt: str, stop: Optional[List[str]] = None) -> str:
|
|
|
|
| 23 |
def __init__(self, model_id: str = None):
|
| 24 |
super().__init__()
|
| 25 |
self.model_path = f'bot/question_answering/{model_id}'
|
|
|
|
|
|
|
| 26 |
|
| 27 |
|
| 28 |
def _call(self, prompt: str, stop: Optional[List[str]] = None) -> str:
|