File size: 395 Bytes
109bff4
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
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)