Spaces:
Runtime error
Runtime error
With shell?
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ import time
|
|
7 |
from pathlib import Path
|
8 |
|
9 |
PORT = 7860
|
10 |
-
|
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 |
-
|
28 |
-
cmd =
|
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"""
|