muellerzr HF staff commited on
Commit
922b25a
1 Parent(s): e94509b

Use os environ copy

Browse files
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
- env = {"__AIM_PROXY_URL__":"0.0.0.0:7860"}
 
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():