Spaces:
Build error
Build error
File size: 197 Bytes
3d79cbe |
1 2 3 4 5 6 7 8 9 |
import os
from dotenv import load_dotenv
from subprocess import Popen
load_dotenv()
command = ["mercury", "run", f"0.0.0.0:{os.environ.get('PORT', 7860)}"]
worker = Popen(command)
worker.wait()
|