Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 03a8d12

Browse files
authored
Lint
1 parent 3b23dba commit 03a8d12

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

llama_cpp/server/__main__.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,20 @@
2424

2525
from __future__ import annotations
2626

27+
import argparse
2728
import os
2829
import sys
29-
import argparse
3030

3131
import uvicorn
3232

3333
from llama_cpp.server.app import create_app
34+
from llama_cpp.server.cli import add_args_from_model, parse_model_from_args
3435
from llama_cpp.server.settings import (
35-
Settings,
36-
ServerSettings,
37-
ModelSettings,
3836
ConfigFileSettings,
37+
ModelSettings,
38+
ServerSettings,
39+
Settings,
3940
)
40-
from llama_cpp.server.cli import add_args_from_model, parse_model_from_args
4141

4242

4343
def main():
@@ -62,9 +62,10 @@ def main():
6262
with open(config_file, "rb") as f:
6363
# Check if yaml file
6464
if config_file.endswith(".yaml") or config_file.endswith(".yml"):
65-
import yaml
6665
import json
6766

67+
import yaml
68+
6869
config_file_settings = ConfigFileSettings.model_validate_json(
6970
json.dumps(yaml.safe_load(f))
7071
)

0 commit comments

Comments
 (0)