muellerzr HF staff commited on
Commit
e94509b
1 Parent(s): 9b0a28f
Files changed (1) hide show
  1. app.py +2 -1
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
- subprocess.run(cmd)
 
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!")