Spaces:
Runtime error
Runtime error
Proxy URL
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 |
-
|
|
|
21 |
|
22 |
def run():
|
23 |
print("Running app!")
|
|
|
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 = {"__AIM_PROXY_URL__":"0.0.0.0:7860"}
|
21 |
+
subprocess.run(cmd, env=env)
|
22 |
|
23 |
def run():
|
24 |
print("Running app!")
|