Skip to content

Commit

Permalink
fix URL judgement
Browse files Browse the repository at this point in the history
  • Loading branch information
Lychee-acaca committed Jan 29, 2025
1 parent 637435f commit aa8e797
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lmdeploy/serve/gradio/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def run(model_path_or_server: str,
max_log_len (int): Max number of prompt characters or prompt tokens
being printed in log. Default: Unlimited
"""
if ':' in model_path_or_server:
if '://' in model_path_or_server:
from lmdeploy.serve.gradio.api_server_backend import run_api_server
run_api_server(model_path_or_server, server_name, server_port, batch_size, share=share)
else:
Expand Down

0 comments on commit aa8e797

Please sign in to comment.