Spaces:
Runtime error
Runtime error
Just use port, not ip
Browse files
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,7 +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 |
subprocess.run(cmd)
|
29 |
|
30 |
|
|
|
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 --force-init".split()
|
28 |
+
cmd = f"aim up --port {PORT} --dev".split()
|
29 |
subprocess.run(cmd)
|
30 |
|
31 |
|