Spaces:
Running
on
Zero
Running
on
Zero
Move Generate and Extract GLB buttons above preview/GLB windows
Browse files
app.py
CHANGED
|
@@ -744,14 +744,14 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue="orange", neutral_hue="slate"))
|
|
| 744 |
tex_multiimage_algo = gr.Radio(["stochastic", "multidiffusion"], label="Texture Algorithm", value="stochastic")
|
| 745 |
|
| 746 |
with gr.Column(scale=10):
|
| 747 |
-
preview_output = gr.HTML(empty_html, label="3D Asset Preview", show_label=True, container=True)
|
| 748 |
-
glb_output = gr.Model3D(label="Extracted GLB", height=400, show_label=True, display_mode="solid", clear_color=(0.25, 0.25, 0.25, 1.0))
|
| 749 |
-
download_btn = gr.DownloadButton(label="Download GLB")
|
| 750 |
-
|
| 751 |
with gr.Row():
|
| 752 |
generate_btn = gr.Button("Generate", variant="primary")
|
| 753 |
extract_btn = gr.Button("Extract GLB")
|
| 754 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 755 |
example_image = gr.Image(visible=False) # Hidden component for examples
|
| 756 |
examples_multi = gr.Examples(
|
| 757 |
examples=prepare_multi_example(),
|
|
|
|
| 744 |
tex_multiimage_algo = gr.Radio(["stochastic", "multidiffusion"], label="Texture Algorithm", value="stochastic")
|
| 745 |
|
| 746 |
with gr.Column(scale=10):
|
|
|
|
|
|
|
|
|
|
|
|
|
| 747 |
with gr.Row():
|
| 748 |
generate_btn = gr.Button("Generate", variant="primary")
|
| 749 |
extract_btn = gr.Button("Extract GLB")
|
| 750 |
|
| 751 |
+
preview_output = gr.HTML(empty_html, label="3D Asset Preview", show_label=True, container=True)
|
| 752 |
+
glb_output = gr.Model3D(label="Extracted GLB", height=400, show_label=True, display_mode="solid", clear_color=(0.25, 0.25, 0.25, 1.0))
|
| 753 |
+
download_btn = gr.DownloadButton(label="Download GLB")
|
| 754 |
+
|
| 755 |
example_image = gr.Image(visible=False) # Hidden component for examples
|
| 756 |
examples_multi = gr.Examples(
|
| 757 |
examples=prepare_multi_example(),
|