V-Express / app.py
alexcanton's picture
Update app.py
e69d0e3 verified
raw
history blame
421 Bytes
import subprocess
def setup_and_run():
# Run the setup script
subprocess.run(['bash', 'setup.sh'], check=True)
# Run the gradio_inference.py script from the cloned repository
result = subprocess.run(['python', 'V-Express/gradio_inference.py'], capture_output=True, text=True)
return result.stdout + "\n" + result.stderr
if __name__ == "__main__":
output = setup_and_run()
print(output)