Skip to content

Commit 4d34afa

Browse files
authored
fix(backend): skip load model info if model path is speficied (#241)
1 parent 6f002ad commit 4d34afa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/backend/main.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,13 @@ async def serve_index():
130130
args = parse_args()
131131
set_log_level(args.log_level)
132132
logger.info(f"args: {args}")
133-
init_model_info_dict_cache(args.use_hfcache)
133+
134+
if args.model_name is None:
135+
init_model_info_dict_cache(args.use_hfcache)
136+
134137
if args.log_level != "DEBUG":
135138
display_parallax_run()
139+
136140
check_latest_release()
137141

138142
scheduler_manage = SchedulerManage(

0 commit comments

Comments
 (0)