gangweix commited on
Commit
006222c
·
verified ·
1 Parent(s): 778b9d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -18,6 +18,12 @@ from ppd.utils.depth2pcd import depth2pcd
18
  from moge.model.v2 import MoGeModel
19
  from ppd.models.ppd import PixelPerfectDepth
20
 
 
 
 
 
 
 
21
  css = """
22
  #img-display-container {
23
  max-height: 100vh;
 
18
  from moge.model.v2 import MoGeModel
19
  from ppd.models.ppd import PixelPerfectDepth
20
 
21
+ try:
22
+ import spaces
23
+ HUGGINFACE_SPACES_INSTALLED = True
24
+ except ImportError:
25
+ HUGGINFACE_SPACES_INSTALLED = False
26
+
27
  css = """
28
  #img-display-container {
29
  max-height: 100vh;