muellerzr HF staff commited on
Commit
99d0af0
1 Parent(s): 820b8dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -7,7 +7,7 @@ import time
7
  from pathlib import Path
8
  import gradio as gr
9
 
10
- PORT = 7861
11
  HOST = "0.0.0.0"
12
 
13
  REPO_ID = "muellerzr/bert-base-cased-tpu-accelerate-experiments"
@@ -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 --port 7860 --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://127.0.0.1:7860/proxy/absolute/{PORT}"
49
  >
50
  </iframe>
51
  """
 
7
  from pathlib import Path
8
  import gradio as gr
9
 
10
+ PORT = 7860
11
  HOST = "0.0.0.0"
12
 
13
  REPO_ID = "muellerzr/bert-base-cased-tpu-accelerate-experiments"
 
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://127.0.0.1:7861/proxy/absolute/{PORT}"
49
  >
50
  </iframe>
51
  """