Spaces:
Sleeping
Sleeping
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) | |