muellerzr HF staff commited on
Commit
8b47dfb
·
1 Parent(s): 30c9a9e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -4,6 +4,7 @@ import subprocess
4
  import os
5
  from huggingface_hub import hf_hub_download
6
  import time
 
7
 
8
  PORT = 7860
9
  HOST = "0.0.0.0"
@@ -19,9 +20,10 @@ def download_logs():
19
  cache_dir = "."
20
  )
21
  subprocess.run(f"unzip {f}".split())
 
22
 
23
  def run_aim():
24
- subprocess.run(["ls"])
25
  cmd = f"aim up --host {HOST} --port {PORT}".split()
26
  subprocess.run(cmd)
27
 
 
4
  import os
5
  from huggingface_hub import hf_hub_download
6
  import time
7
+ import pathlib
8
 
9
  PORT = 7860
10
  HOST = "0.0.0.0"
 
20
  cache_dir = "."
21
  )
22
  subprocess.run(f"unzip {f}".split())
23
+ subprocess.run(f"cd {Path(f).name}".split())
24
 
25
  def run_aim():
26
+ subprocess.run(["ls -a"])
27
  cmd = f"aim up --host {HOST} --port {PORT}".split()
28
  subprocess.run(cmd)
29