Spaces:
Runtime error
Runtime error
| 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, | |
| ) | |