freealise commited on
Commit
fa50e5e
·
verified ·
1 Parent(s): 0b6c6a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -76,8 +76,10 @@ def findNormals(gray_depth, format):
76
 
77
  load_svg="""
78
  async(img, dpt)=>{
 
79
  document.getElementById('inimage').outerHTML = '<image id="inimage" crossorigin="anonymous" href="' + img + '" x="0" y="0" height="100%" width="100%" style="filter: url(#displacementFilter)"/>';
80
  document.getElementById('feimage').outerHTML = '<feImage id="feimage" crossorigin="anonymous" width="100%" height="100%" x="0" y="0" result="10_MAP" href="' + dpt + '"/>';
 
81
  }
82
  """
83
 
 
76
 
77
  load_svg="""
78
  async(img, dpt)=>{
79
+ try {
80
  document.getElementById('inimage').outerHTML = '<image id="inimage" crossorigin="anonymous" href="' + img + '" x="0" y="0" height="100%" width="100%" style="filter: url(#displacementFilter)"/>';
81
  document.getElementById('feimage').outerHTML = '<feImage id="feimage" crossorigin="anonymous" width="100%" height="100%" x="0" y="0" result="10_MAP" href="' + dpt + '"/>';
82
+ } catch(e) {alert(e)}
83
  }
84
  """
85