alexnasa commited on
Commit
63bf201
·
verified ·
1 Parent(s): d37df73

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -146,6 +146,15 @@ def run_triposg(image_path: str,
146
  merged.export(glb_path)
147
  print(glb_path)
148
 
 
 
 
 
 
 
 
 
 
149
  return glb_path, export_dir
150
 
151
  # Gradio Interface
 
146
  merged.export(glb_path)
147
  print(glb_path)
148
 
149
+ # 1) Check for the file’s existence
150
+ if not os.path.exists(glb_path):
151
+ raise FileNotFoundError(f"No merged .glb found at {glb_path}")
152
+
153
+ # 2) List every file in the folder
154
+ all_files = os.listdir(export_dir)
155
+
156
+ print(f"Files in {export_dir}: {all_files}")
157
+
158
  return glb_path, export_dir
159
 
160
  # Gradio Interface