muellerzr HF staff commited on
Commit
994d8da
·
1 Parent(s): f6fc610

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -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 --host 0.0.0.0 --port 7861 --dev --base-path /proxy/absolute/{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://0.0.0.0:7861/proxy/absolute/{PORT}"
49
  >
50
  </iframe>
51
  """
 
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://localhost:7861/proxy/absolute/{PORT}"
49
  >
50
  </iframe>
51
  """