Arts-of-coding's picture
Update app.py
fc7a298
raw
history blame
282 Bytes
import os
from dotenv import load_dotenv
from subprocess import Popen
load_dotenv()
command = ["pip", "install", "anansescanpy"]
worker = Popen(command)
worker.wait()
command = ["mercury", "run", f"0.0.0.0:{os.environ.get('PORT', 7860)}"]
worker = Popen(command)
worker.wait()