alexcanton commited on
Commit
e69d0e3
·
verified ·
1 Parent(s): 7389ed9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -1,10 +1,13 @@
1
  import subprocess
2
 
3
- def run_gradio_inference():
 
 
 
4
  # Run the gradio_inference.py script from the cloned repository
5
  result = subprocess.run(['python', 'V-Express/gradio_inference.py'], capture_output=True, text=True)
6
  return result.stdout + "\n" + result.stderr
7
 
8
  if __name__ == "__main__":
9
- output = run_gradio_inference()
10
  print(output)
 
1
  import subprocess
2
 
3
+ def setup_and_run():
4
+ # Run the setup script
5
+ subprocess.run(['bash', 'setup.sh'], check=True)
6
+
7
  # Run the gradio_inference.py script from the cloned repository
8
  result = subprocess.run(['python', 'V-Express/gradio_inference.py'], capture_output=True, text=True)
9
  return result.stdout + "\n" + result.stderr
10
 
11
  if __name__ == "__main__":
12
+ output = setup_and_run()
13
  print(output)