veghdev's picture
Update app.py
a227706
raw
history blame contribute delete
212 Bytes
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)}"]
print(command)
worker = Popen(command)
worker.wait()