gpt2-chitchat / nezha.py
mason0510's picture
Duplicate from xibaozi/gpt2-chitchat
bd5d31b
raw
history blame contribute delete
357 Bytes
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"))