DepthFlow / app.py
Tremeschin's picture
Better hook for installing latest git dependencies
f559c43 unverified
raw
history blame
510 Bytes
import subprocess
import sys
# Install latest code
def upgrade(dependency):
subprocess.run((
sys.executable, "-m", "pip", "install",
dependency, "--upgrade",
))
upgrade("git+https://github.com/BrokenSource/BrokenSource@main")
upgrade("git+https://github.com/BrokenSource/ShaderFlow@main")
upgrade("git+https://github.com/BrokenSource/DepthFlow@main")
from DepthFlow.Webui import DepthGradio
DepthGradio().launch(
turbopipe=True,
workers=4,
nvenc=True,
pwa=True,
)