Chao Xu commited on
Commit
ab4c47c
โ€ข
1 Parent(s): c1ff4cf

install elev est debug 0

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -5,11 +5,12 @@ python gradio_new.py 0
5
  '''
6
  import os, sys
7
  from huggingface_hub import snapshot_download
8
- sys.path.append(snapshot_download("One-2-3-45/code", token=os.environ['TOKEN']))
 
9
 
10
  import subprocess
11
 
12
- subprocess.run(["./one2345_elev_est/install.sh"], cwd="./one2345_elev_est/")
13
 
14
 
15
  import shutil
 
5
  '''
6
  import os, sys
7
  from huggingface_hub import snapshot_download
8
+ code_dir = snapshot_download("One-2-3-45/code", token=os.environ['TOKEN'])
9
+ sys.path.append(code_dir)
10
 
11
  import subprocess
12
 
13
+ subprocess.run(["sh", os.path.join(code_dir, "one2345_elev_est/install.sh")], cwd=os.path.join(code_dir, "one2345_elev_est/"))
14
 
15
 
16
  import shutil