muellerzr HF staff commited on
Commit
36c05c2
1 Parent(s): f674986

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -31
app.py CHANGED
@@ -13,43 +13,12 @@ HOST = "0.0.0.0"
13
  REPO_ID = "muellerzr/bert-base-cased-tpu-accelerate-experiments"
14
 
15
  def run_aim():
16
- """
17
- filename = "aim_logs.zip"
18
- f = hf_hub_download(
19
- repo_id=REPO_ID,
20
- repo_type="model",
21
- filename=filename,
22
- cache_dir = "."
23
- )
24
- """
25
  subprocess.run(["unzip", "test.zip"])
26
  subprocess.run(["mv", "test/.aim/", "/home/user/app/.aim/"])
27
  time.sleep(3)
28
  cmd = f"aim up --host 0.0.0.0 --port 7860 --dev".split(" ")
29
  subprocess.run(cmd)
30
 
31
- """
32
- style "";
33
- position: fixed;
34
- top: 0px;
35
- bottom: 0px;
36
- right: 0px;
37
- width: 100%;
38
- border: none;
39
- margin: 0;
40
- padding: 0;
41
- overflow: hidden;
42
- z-index: 999999;
43
- height: 100%;
44
- """
45
-
46
- html = f"""
47
- <iframe
48
- src="http://127.0.0.1:7861/"
49
- >
50
- </iframe>
51
- """
52
-
53
  def run():
54
  print("Running app!")
55
 
 
13
  REPO_ID = "muellerzr/bert-base-cased-tpu-accelerate-experiments"
14
 
15
  def run_aim():
 
 
 
 
 
 
 
 
 
16
  subprocess.run(["unzip", "test.zip"])
17
  subprocess.run(["mv", "test/.aim/", "/home/user/app/.aim/"])
18
  time.sleep(3)
19
  cmd = f"aim up --host 0.0.0.0 --port 7860 --dev".split(" ")
20
  subprocess.run(cmd)
21
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  def run():
23
  print("Running app!")
24