Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -341,7 +341,8 @@ def generate(
|
|
341 |
new_filepath = os.path.join(static_folder, new_filename)
|
342 |
shutil.copy(glb_path, new_filepath)
|
343 |
|
344 |
-
|
|
|
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 a 3D model viewer component with a white background.
|
345 |
+
yield gr.Model3D(new_filepath, clear_color=[1, 1, 1, 1])
|
346 |
return
|
347 |
|
348 |
# --- Image Generation branch ---
|