Spaces:
Runtime error
Runtime error
Update src/app/response.py
Browse files- src/app/response.py +2 -2
src/app/response.py
CHANGED
@@ -11,13 +11,13 @@ from src.config import (
|
|
11 |
stream,
|
12 |
repetition_penalty,
|
13 |
)
|
14 |
-
from src.app.model import
|
15 |
from src.logger import logging
|
16 |
from src.exception import CustomExceptionHandling
|
17 |
|
18 |
|
19 |
# Model, tokenizer and processor
|
20 |
-
model, tokenizer, processor =
|
21 |
|
22 |
|
23 |
@spaces.GPU(duration=120)
|
|
|
11 |
stream,
|
12 |
repetition_penalty,
|
13 |
)
|
14 |
+
from src.app.model import load_model_tokenizer_and_processor
|
15 |
from src.logger import logging
|
16 |
from src.exception import CustomExceptionHandling
|
17 |
|
18 |
|
19 |
# Model, tokenizer and processor
|
20 |
+
model, tokenizer, processor = load_model_tokenizer_and_processor(model_name, device)
|
21 |
|
22 |
|
23 |
@spaces.GPU(duration=120)
|