Spaces:
Paused
Paused
Commit
·
8370e02
1
Parent(s):
2f54c25
Some modifications
Browse files- main/main.py +1 -2
main/main.py
CHANGED
@@ -8,7 +8,6 @@ from pathlib import Path
|
|
8 |
from litgpt.api import LLM
|
9 |
import os
|
10 |
import uvicorn
|
11 |
-
from huggingface_hub.hf_api import HfApi
|
12 |
|
13 |
# Set up logging
|
14 |
logging.basicConfig(level=logging.INFO)
|
@@ -75,7 +74,7 @@ async def initialize_model(request: InitializeRequest):
|
|
75 |
|
76 |
try:
|
77 |
# Get the project root directory (where main.py is located)
|
78 |
-
project_root = Path(__file__).parent
|
79 |
checkpoints_dir = project_root / "checkpoints"
|
80 |
|
81 |
# For LitGPT downloaded models, path includes organization
|
|
|
8 |
from litgpt.api import LLM
|
9 |
import os
|
10 |
import uvicorn
|
|
|
11 |
|
12 |
# Set up logging
|
13 |
logging.basicConfig(level=logging.INFO)
|
|
|
74 |
|
75 |
try:
|
76 |
# Get the project root directory (where main.py is located)
|
77 |
+
project_root = Path(__file__).parent.parent
|
78 |
checkpoints_dir = project_root / "checkpoints"
|
79 |
|
80 |
# For LitGPT downloaded models, path includes organization
|