Spaces:
Runtime error
Runtime error
Use os environ copy
Browse files
app.py
CHANGED
@@ -17,7 +17,8 @@ def run_aim():
|
|
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 --base-path /api".split(" ")
|
20 |
-
env =
|
|
|
21 |
subprocess.run(cmd, env=env)
|
22 |
|
23 |
def run():
|
|
|
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 --base-path /api".split(" ")
|
20 |
+
env = os.environ.copy()
|
21 |
+
env["__AIM_PROXY_URL__"] = "0.0.0.0:7860"
|
22 |
subprocess.run(cmd, env=env)
|
23 |
|
24 |
def run():
|