prithivMLmods commited on
Commit
12e5d3f
·
verified ·
1 Parent(s): 72cda6b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -341,7 +341,9 @@ def generate(
341
  new_filepath = os.path.join(static_folder, new_filename)
342
  shutil.copy(glb_path, new_filepath)
343
 
344
- yield gr.File(new_filepath)
 
 
345
  return
346
 
347
  # --- Image Generation branch ---
 
341
  new_filepath = os.path.join(static_folder, new_filename)
342
  shutil.copy(glb_path, new_filepath)
343
 
344
+ #yield gr.File(new_filepath)
345
+ # After generating the GLB file...
346
+ yield gr.Model3D(new_filepath, clear_color=[1, 1, 1, 1])
347
  return
348
 
349
  # --- Image Generation branch ---