Spaces:
Sleeping
Sleeping
File size: 421 Bytes
06b0774 e69d0e3 7389ed9 06b0774 7389ed9 e69d0e3 7389ed9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
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)
|