Spaces:
Running
on
Zero
Running
on
Zero
优化界面和交互
Browse files
app.py
CHANGED
|
@@ -32,6 +32,7 @@ with gr.Blocks().queue() as demo:
|
|
| 32 |
with gr.Column(scale=3):
|
| 33 |
gr.Markdown("#### Image Prompt")
|
| 34 |
image = gr.Image(sources=["upload"], label='Image', type='pil', image_mode='RGBA', height=290)
|
|
|
|
| 35 |
with gr.Accordion("Advanced Options", open=False):
|
| 36 |
seed = gr.Slider(
|
| 37 |
label="Seed",
|
|
@@ -51,11 +52,7 @@ with gr.Blocks().queue() as demo:
|
|
| 51 |
|
| 52 |
with gr.Column(scale=6):
|
| 53 |
gr.Markdown("#### Generated Mesh")
|
| 54 |
-
|
| 55 |
-
with gr.Tab('Exporting Mesh', id='export_mesh_panel'):
|
| 56 |
-
html_export_mesh = gr.HTML(HTML_OUTPUT_PLACEHOLDER, label='Output')
|
| 57 |
-
with gr.Tab('Mesh Statistic', id='stats_panel'):
|
| 58 |
-
stats = gr.Json({}, label='Mesh Stats')
|
| 59 |
|
| 60 |
with gr.Column(scale=3):
|
| 61 |
gr.Markdown("#### Image Examples")
|
|
|
|
| 32 |
with gr.Column(scale=3):
|
| 33 |
gr.Markdown("#### Image Prompt")
|
| 34 |
image = gr.Image(sources=["upload"], label='Image', type='pil', image_mode='RGBA', height=290)
|
| 35 |
+
gen_button = gr.Button(value='Generate Shape', variant='primary')
|
| 36 |
with gr.Accordion("Advanced Options", open=False):
|
| 37 |
seed = gr.Slider(
|
| 38 |
label="Seed",
|
|
|
|
| 52 |
|
| 53 |
with gr.Column(scale=6):
|
| 54 |
gr.Markdown("#### Generated Mesh")
|
| 55 |
+
html_export_mesh = gr.HTML(HTML_OUTPUT_PLACEHOLDER, label='Output')
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
|
| 57 |
with gr.Column(scale=3):
|
| 58 |
gr.Markdown("#### Image Examples")
|