test-mercury / app.py
gabrielmancini's picture
Duplicate from pplonski/my-notebooks
bf1d125
raw
history blame contribute delete
165 Bytes
import os
from subprocess import Popen
command = ["mercury", "run", f"0.0.0.0:{os.environ.get('PORT', 7860)}", "--verbose"]
worker = Popen(command)
worker.wait()