Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ import time
|
|
7 |
from pathlib import Path
|
8 |
import gradio as gr
|
9 |
|
10 |
-
PORT =
|
11 |
HOST = "0.0.0.0"
|
12 |
|
13 |
REPO_ID = "muellerzr/bert-base-cased-tpu-accelerate-experiments"
|
@@ -25,7 +25,7 @@ def run_aim():
|
|
25 |
subprocess.run(["unzip", "test.zip"])
|
26 |
subprocess.run(["mv", "test/.aim/", "/home/user/app/.aim/"])
|
27 |
time.sleep(5)
|
28 |
-
cmd = f"aim up --port
|
29 |
subprocess.run(cmd, shell=True)
|
30 |
|
31 |
"""
|
@@ -45,7 +45,7 @@ def run_aim():
|
|
45 |
|
46 |
html = f"""
|
47 |
<iframe
|
48 |
-
src="http://127.0.0.1:
|
49 |
>
|
50 |
</iframe>
|
51 |
"""
|
|
|
7 |
from pathlib import Path
|
8 |
import gradio as gr
|
9 |
|
10 |
+
PORT = 7860
|
11 |
HOST = "0.0.0.0"
|
12 |
|
13 |
REPO_ID = "muellerzr/bert-base-cased-tpu-accelerate-experiments"
|
|
|
25 |
subprocess.run(["unzip", "test.zip"])
|
26 |
subprocess.run(["mv", "test/.aim/", "/home/user/app/.aim/"])
|
27 |
time.sleep(5)
|
28 |
+
cmd = f"aim up --port 7861 --dev --base-path /proxy/absolute/{PORT} &"
|
29 |
subprocess.run(cmd, shell=True)
|
30 |
|
31 |
"""
|
|
|
45 |
|
46 |
html = f"""
|
47 |
<iframe
|
48 |
+
src="http://127.0.0.1:7861/proxy/absolute/{PORT}"
|
49 |
>
|
50 |
</iframe>
|
51 |
"""
|