File size: 337 Bytes
3b532f0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import os
from dotenv import load_dotenv
from subprocess import Popen
load_dotenv()
my_env = os.environ.copy()
my_env["HF_SPACE"] = "embed/rajesh1729/animated-visualization-with-mercury-ipyvizzu"
command = ["mercury", "run", f"0.0.0.0:{os.environ.get('PORT', 7860)}"]
print(command)
worker = Popen(command, env=my_env)
worker.wait() |