Spaces:
Build error
Build error
File size: 357 Bytes
bd5d31b |
1 2 3 4 5 6 7 8 9 10 11 |
import subprocess
import asyncio
# subprocess.run(["bash", "entrypoint.sh"])
# import asyncio
async def execute_command(command):
process = await asyncio.create_subprocess_shell(command, stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE)
stdout, stderr = await process.communicate()
asyncio.run(execute_command("bash entrypoint.sh")) |