muellerzr HF staff commited on
Commit
046bbdd
1 Parent(s): e208ab6

Single func

Browse files
Files changed (1) hide show
  1. app.py +5 -8
app.py CHANGED
@@ -11,7 +11,7 @@ HOST = "0.0.0.0"
11
 
12
  REPO_ID = "muellerzr/bert-base-cased-tpu-accelerate-experiments"
13
 
14
- def download_logs():
15
  filename = "aim_logs.zip"
16
  f = hf_hub_download(
17
  repo_id=REPO_ID,
@@ -20,13 +20,11 @@ def download_logs():
20
  cache_dir = "."
21
  )
22
  subprocess.run(f"unzip {f}".split())
23
- subprocess.run(["cd", Path(f).name])
24
-
25
- def run_aim():
26
- subprocess.run(["ls -a"])
27
  cmd = f"aim up --host {HOST} --port {PORT}".split()
28
- subprocess.run(cmd)
29
-
 
30
  html = f"""
31
  <iframe
32
  src="http://{HOST}:{PORT}"
@@ -46,7 +44,6 @@ html = f"""
46
  """
47
 
48
  def main():
49
- download_logs()
50
  run_aim()
51
 
52
  if __name__ == "__main__":
 
11
 
12
  REPO_ID = "muellerzr/bert-base-cased-tpu-accelerate-experiments"
13
 
14
+ def run_aim():
15
  filename = "aim_logs.zip"
16
  f = hf_hub_download(
17
  repo_id=REPO_ID,
 
20
  cache_dir = "."
21
  )
22
  subprocess.run(f"unzip {f}".split())
23
+ subprocess.run(["ls -a"], cwd=Path(f).name)
 
 
 
24
  cmd = f"aim up --host {HOST} --port {PORT}".split()
25
+ subprocess.run(cmd, cwd=Path(f).name)
26
+
27
+
28
  html = f"""
29
  <iframe
30
  src="http://{HOST}:{PORT}"
 
44
  """
45
 
46
  def main():
 
47
  run_aim()
48
 
49
  if __name__ == "__main__":