muellerzr HF staff commited on
Commit
0fad831
1 Parent(s): 994d8da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -24,7 +24,7 @@ def run_aim():
24
  """
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
 
@@ -45,7 +45,7 @@ def run_aim():
45
 
46
  html = f"""
47
  <iframe
48
- src="http://localhost:7861/proxy/absolute/{PORT}"
49
  >
50
  </iframe>
51
  """
@@ -55,6 +55,7 @@ def run():
55
 
56
  def main():
57
  run_aim()
 
58
  demo = gr.Interface(
59
  fn=run,
60
  inputs=[],
 
24
  """
25
  subprocess.run(["unzip", "test.zip"])
26
  subprocess.run(["mv", "test/.aim/", "/home/user/app/.aim/"])
27
+ time.sleep(3)
28
  cmd = f"aim up --port 7861 --dev --base-path /proxy/absolute/{PORT} &"
29
  subprocess.run(cmd, shell=True)
30
 
 
45
 
46
  html = f"""
47
  <iframe
48
+ src="http://127.0.0.1:7861/proxy/absolute/7860"
49
  >
50
  </iframe>
51
  """
 
55
 
56
  def main():
57
  run_aim()
58
+ time.sleep(5)
59
  demo = gr.Interface(
60
  fn=run,
61
  inputs=[],