Tremeschin commited on
Commit
e10d346
·
unverified ·
1 Parent(s): 7515d8b

Desperate attempt to wrap the whole interface in zerogpu decorator

Browse files
Files changed (2) hide show
  1. app.py +2 -1
  2. requirements.txt +1 -1
app.py CHANGED
@@ -1,6 +1,7 @@
 
1
  from DepthFlow.Webui import DepthGradio
2
 
3
- DepthGradio().launch(
4
  turbopipe=True,
5
  workers=4,
6
  nvenc=True,
 
1
+ import spaces
2
  from DepthFlow.Webui import DepthGradio
3
 
4
+ spaces.GPU(DepthGradio().launch)(
5
  turbopipe=True,
6
  workers=4,
7
  nvenc=True,
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
- # Todo: Swap to pypi when v0.9 is released. Rebuild trigger count: 3
2
  broken-source @ git+https://github.com/BrokenSource/BrokenSource@main
3
  shaderflow @ git+https://github.com/BrokenSource/ShaderFlow@main
4
  depthflow @ git+https://github.com/BrokenSource/DepthFlow@main
 
1
+ # Todo: Swap to pypi when v0.9 is released. Rebuild trigger count: 4
2
  broken-source @ git+https://github.com/BrokenSource/BrokenSource@main
3
  shaderflow @ git+https://github.com/BrokenSource/ShaderFlow@main
4
  depthflow @ git+https://github.com/BrokenSource/DepthFlow@main