muellerzr HF staff commited on
Commit
c4c4e6d
1 Parent(s): fbc4da1

Try from unzipping in pwd

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,10 +19,10 @@ def run_aim():
19
  filename=filename,
20
  cache_dir = "."
21
  )
22
- subprocess.run(f"unzip {f}".split())
23
  time.sleep(5)
24
  cmd = f"aim up --host {HOST} --port {PORT}".split()
25
- subprocess.run(cmd, cwd=Path(f).name)
26
 
27
 
28
  html = f"""
 
19
  filename=filename,
20
  cache_dir = "."
21
  )
22
+ subprocess.run(["unzip", f, "-d", "."])
23
  time.sleep(5)
24
  cmd = f"aim up --host {HOST} --port {PORT}".split()
25
+ subprocess.run(cmd)
26
 
27
 
28
  html = f"""