suvadityamuk commited on
Commit
830114f
·
1 Parent(s): c07c20f

chore: update demo ui

Browse files

Signed-off-by: Suvaditya Mukherjee <[email protected]>

Files changed (1) hide show
  1. demos/run_gradio_demo.py +9 -8
demos/run_gradio_demo.py CHANGED
@@ -452,10 +452,11 @@ INSTRUCTIONS_MD = """
452
  <div class="instructions-container">
453
  <h3>Instructions</h3>
454
  <ol>
455
- <li><strong>Upload a Structure Mesh (.glb):</strong> This defines the shape of your 3D object.</li>
456
  <li><strong>Choose Guidance Mode:</strong> Select "Self-Similarity" (Text) or "Appearance" (Mesh/Image) using the tabs.</li>
457
  <li><strong>Provide Reference:</strong> Enter a text prompt or upload a reference image/mesh.</li>
458
  <li><strong>Run:</strong> Click "Generate 3D Asset" to create the result.</li>
 
459
  </ol>
460
  </div>
461
  """
@@ -521,19 +522,19 @@ with gr.Blocks(
521
  label="Structure Examples"
522
  )
523
 
524
- with gr.Row(elem_classes="input-row"):
525
- with gr.Column(scale=3):
526
- sim_ref_text = gr.Textbox(label="Reference Text Prompt", placeholder="Describe the appearance...", lines=2)
527
- with gr.Column(scale=2):
528
- gr.Examples(examples=EX_TEXT, inputs=sim_ref_text, label="Prompt Examples")
529
-
530
  gr.Markdown("> **_NOTE:_** Please use either a reference image or a reference text prompt, but not both.")
531
 
532
  with gr.Row(elem_classes="input-row"):
533
  with gr.Column(scale=3):
534
- sim_ref_image = gr.Image(label="Reference Appearance Image (Optional)", type="filepath", height=250)
535
  with gr.Column(scale=2):
536
  gr.Examples(examples=EX_IMG, inputs=sim_ref_image, label="Image Examples")
 
 
 
 
 
 
537
 
538
  # --- TAB 2: APPEARANCE (RIGHT) ---
539
  with gr.TabItem("Appearance", id="tab_appearance") as tab_app:
 
452
  <div class="instructions-container">
453
  <h3>Instructions</h3>
454
  <ol>
455
+ <li><strong>Upload a Structure Mesh (.glb):</strong> This defines the shape of your 3D object. We expect a y-up mesh, but feel free to convert it using the "Advanced Settings" below.</li>
456
  <li><strong>Choose Guidance Mode:</strong> Select "Self-Similarity" (Text) or "Appearance" (Mesh/Image) using the tabs.</li>
457
  <li><strong>Provide Reference:</strong> Enter a text prompt or upload a reference image/mesh.</li>
458
  <li><strong>Run:</strong> Click "Generate 3D Asset" to create the result.</li>
459
+ <li><strong>Result:</strong> The result will be displayed in the viewer on the left, and a video will be generated on the right.</li>
460
  </ol>
461
  </div>
462
  """
 
522
  label="Structure Examples"
523
  )
524
 
 
 
 
 
 
 
525
  gr.Markdown("> **_NOTE:_** Please use either a reference image or a reference text prompt, but not both.")
526
 
527
  with gr.Row(elem_classes="input-row"):
528
  with gr.Column(scale=3):
529
+ sim_ref_image = gr.Image(label="Reference Appearance Image", type="filepath", height=250)
530
  with gr.Column(scale=2):
531
  gr.Examples(examples=EX_IMG, inputs=sim_ref_image, label="Image Examples")
532
+
533
+ with gr.Row(elem_classes="input-row"):
534
+ with gr.Column(scale=3):
535
+ sim_ref_text = gr.Textbox(label="Reference Text Prompt", placeholder="Describe the appearance...", lines=2)
536
+ with gr.Column(scale=2):
537
+ gr.Examples(examples=EX_TEXT, inputs=sim_ref_text, label="Prompt Examples")
538
 
539
  # --- TAB 2: APPEARANCE (RIGHT) ---
540
  with gr.TabItem("Appearance", id="tab_appearance") as tab_app: