Update model_loading.py
Browse files- model_loading.py +7 -11
model_loading.py
CHANGED
@@ -1,13 +1,9 @@
|
|
1 |
-
import
|
2 |
-
import requests
|
3 |
-
from dotenv import load_dotenv
|
4 |
|
5 |
-
|
6 |
-
api_key = os.getenv('HF_API_KEY')
|
7 |
-
model_path = os.getenv('MODEL_PATH')
|
8 |
|
9 |
-
def
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
return
|
|
|
1 |
+
from load_model import load_model
|
|
|
|
|
2 |
|
3 |
+
model, tokenizer = load_model()
|
|
|
|
|
4 |
|
5 |
+
def get_model():
|
6 |
+
return model
|
7 |
+
|
8 |
+
def get_tokenizer():
|
9 |
+
return tokenizer
|