muellerzr HF staff commited on
Commit
b4766e8
1 Parent(s): 54a84a0

With shell?

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -7,7 +7,7 @@ import time
7
  from pathlib import Path
8
 
9
  PORT = 7860
10
- #HOST = "0.0.0.0"
11
 
12
  REPO_ID = "muellerzr/bert-base-cased-tpu-accelerate-experiments"
13
 
@@ -24,9 +24,8 @@ def run_aim():
24
  subprocess.run(["unzip", "test.zip"])
25
  subprocess.run(["mv", "test/.aim/", "/home/user/app/.aim/"])
26
  time.sleep(5)
27
- #cmd = f"aim up --host {HOST} --port {PORT} --dev --force-init".split()
28
- cmd = f"aim up --port {PORT} --dev".split()
29
- subprocess.run(cmd)
30
 
31
 
32
  html = f"""
 
7
  from pathlib import Path
8
 
9
  PORT = 7860
10
+ HOST = "0.0.0.0"
11
 
12
  REPO_ID = "muellerzr/bert-base-cased-tpu-accelerate-experiments"
13
 
 
24
  subprocess.run(["unzip", "test.zip"])
25
  subprocess.run(["mv", "test/.aim/", "/home/user/app/.aim/"])
26
  time.sleep(5)
27
+ cmd = f"aim up --host {HOST} --port {PORT} --dev".split()
28
+ subprocess.run(cmd, shell=True)
 
29
 
30
 
31
  html = f"""