swanlab / app.py
pengzhendong's picture
upload app.py
109bff4
raw
history blame contribute delete
395 Bytes
import os
from modelscope import snapshot_download
from swanboard import SwanBoardRun
from swanlab.env import SwanLabEnv
from swanlab.log import swanlog
log_dir = snapshot_download("pengzhendong/swanlog")
os.environ[SwanLabEnv.SWANLOG_FOLDER.value] = log_dir
swanlog.level = "info" # ["debug", "info", "warning", "error", "critical"]
SwanBoardRun.run(path=log_dir, host="0.0.0.0", port=7860)