Spaces:
Running
Running
File size: 505 Bytes
f90aaa2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | import os
from run_server import logger, parse_args, run
if __name__ == "__main__":
args = parse_args()
console_log_level = "DEBUG" if args.verbose else "INFO"
if args.verbose:
logger.info("Running in verbose mode")
else:
logger.info(
"Running in standard mode. For detailed debug logs, use: uv run server.py --verbose"
)
if args.hf_mirror:
os.environ["HF_ENDPOINT"] = "https://hf-mirror.com"
run(console_log_level=console_log_level)
|