# Launch AIM import subprocess import os from huggingface_hub import hf_hub_download import time from pathlib import Path import gradio as gr PORT = 7860 HOST = "0.0.0.0" REPO_ID = "muellerzr/bert-base-cased-tpu-accelerate-experiments" def run_aim(): subprocess.run(["unzip", "test.zip"]) subprocess.run(["mv", "test/.aim/", "/home/user/app/.aim/"]) time.sleep(3) cmd = f"aim up --host 0.0.0.0 --port 7860 --dev".split(" ") subprocess.run(cmd) def run(): print("Running app!") def main(): run_aim() if __name__ == "__main__": main()