Spaces:
Sleeping
Sleeping
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) | |