# Launch AIM import subprocess import os from huggingface_hub import hf_hub_download import time from pathlib import Path PORT = 7860 HOST = "0.0.0.0" REPO_ID = "muellerzr/bert-base-cased-tpu-accelerate-experiments" def run_aim(): filename = "aim_logs.zip" f = hf_hub_download( repo_id=REPO_ID, repo_type="model", filename=filename, cache_dir = "." ) subprocess.run(f"unzip {f}".split()) subprocess.run(["ls -a"], cwd=Path(f).name) cmd = f"aim up --host {HOST} --port {PORT}".split() subprocess.run(cmd, cwd=Path(f).name) html = f"""