freealise commited on
Commit
bec346c
1 Parent(s): 44fcf03

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -327,7 +327,7 @@ def get_mesh(image, depth, blur_data, loadall):
327
  ply_file = tempfile.NamedTemporaryFile(suffix='.ply', delete=False)
328
  o3d.io.write_point_cloud(ply_file.name, pcd)
329
  print('file - ok')
330
- return ply_file.name, ply_file.name, ",".join(mesh_n)
331
 
332
  def blur_image(image, depth, blur_data):
333
  blur_a = blur_data.split()
@@ -555,7 +555,7 @@ async(c, o, b, p, d, n)=>{
555
  var intv = setInterval(function(){
556
  if (document.getElementById("iframe3D")===null || typeof document.getElementById("iframe3D")==="undefined") {
557
  try {
558
- if (BABYLON && BABYLON.Engine && BABYLON.Engine.LastCreatedScene) {
559
  BABYLON.Engine.LastCreatedScene.onAfterRenderObservable.add(function() { //onDataLoadedObservable
560
 
561
  var then = new Date().getTime();
 
327
  ply_file = tempfile.NamedTemporaryFile(suffix='.ply', delete=False)
328
  o3d.io.write_point_cloud(ply_file.name, pcd)
329
  print('file - ok')
330
+ return "./tetrahedron.ply", ply_file.name, ",".join(mesh_n)
331
 
332
  def blur_image(image, depth, blur_data):
333
  blur_a = blur_data.split()
 
555
  var intv = setInterval(function(){
556
  if (document.getElementById("iframe3D")===null || typeof document.getElementById("iframe3D")==="undefined") {
557
  try {
558
+ if (typeof BABYLON !== "undefined" && BABYLON.Engine && BABYLON.Engine.LastCreatedScene) {
559
  BABYLON.Engine.LastCreatedScene.onAfterRenderObservable.add(function() { //onDataLoadedObservable
560
 
561
  var then = new Date().getTime();