Suparnpreet commited on
Commit
d76f226
·
verified ·
1 Parent(s): 4fc9505

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -6,6 +6,8 @@ import subprocess
6
 
7
  st.title("Try")
8
  st.text("running commondsd .....")
 
 
9
  # subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
10
  cmd1 = subprocess.run("apt update", shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
11
  if cmd1.returncode == 0:
 
6
 
7
  st.title("Try")
8
  st.text("running commondsd .....")
9
+ script_path = 'render-build.sh'
10
+ subprocess.run(['sh', script_path], check=True)
11
  # subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
12
  cmd1 = subprocess.run("apt update", shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
13
  if cmd1.returncode == 0: