Wuvin Fabrice-TIERCELIN commited on
Commit
003d45e
1 Parent(s): 531ccc1

Display the model from the front instead of the back (#5)

Browse files

- Display the model from the front instead of the back (f89e294b4eda8f6b7a89f30c9df895b9f90411b6)


Co-authored-by: Fabrice TIERCELIN <[email protected]>

Files changed (1) hide show
  1. gradio_app/gradio_3dgen.py +2 -2
gradio_app/gradio_3dgen.py CHANGED
@@ -60,7 +60,7 @@ def create_ui(concurrency_id="wkl"):
60
 
61
  with gr.Column(scale=1):
62
  # export mesh display
63
- output_mesh = gr.Model3D(value=None, label="Mesh Model", show_label=True, height=320)
64
  output_video = gr.Video(label="Preview", show_label=True, show_share_button=True, height=320, visible=False)
65
 
66
  input_processing = gr.Checkbox(
@@ -73,7 +73,7 @@ def create_ui(concurrency_id="wkl"):
73
  init_type = gr.Dropdown(choices=["std", "thin"], label="Mesh Initialization", value="std", visible=False)
74
  setable_seed = gr.Slider(-1, 1000000000, -1, step=1, visible=True, label="Seed")
75
  render_video = gr.Checkbox(value=False, visible=False, label="generate video")
76
- fullrunv2_btn = gr.Button('Generate 3D', interactive=True)
77
 
78
  fullrunv2_btn.click(
79
  fn = generate3dv2,
 
60
 
61
  with gr.Column(scale=1):
62
  # export mesh display
63
+ output_mesh = gr.Model3D(value=None, label="Mesh Model", show_label=True, height=320, camera_position=(180, 0, 0))
64
  output_video = gr.Video(label="Preview", show_label=True, show_share_button=True, height=320, visible=False)
65
 
66
  input_processing = gr.Checkbox(
 
73
  init_type = gr.Dropdown(choices=["std", "thin"], label="Mesh Initialization", value="std", visible=False)
74
  setable_seed = gr.Slider(-1, 1000000000, -1, step=1, visible=True, label="Seed")
75
  render_video = gr.Checkbox(value=False, visible=False, label="generate video")
76
+ fullrunv2_btn = gr.Button('Generate 3D', variant = "primary", interactive=True)
77
 
78
  fullrunv2_btn.click(
79
  fn = generate3dv2,