cavargas10 commited on
Commit
e17ff7a
·
verified ·
1 Parent(s): 01dac1f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -5
app.py CHANGED
@@ -13,8 +13,6 @@ from easydict import EasyDict as edict
13
  from trellis.pipelines import TrellisTextTo3DPipeline
14
  from trellis.representations import Gaussian, MeshExtractResult
15
  from trellis.utils import render_utils, postprocessing_utils
16
- import pydantic
17
- print(pydantic.__version__)
18
 
19
  MAX_SEED = np.iinfo(np.int32).max
20
  TMP_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'tmp')
@@ -147,8 +145,9 @@ with gr.Blocks(delete_cache=(600, 600)) as demo:
147
  with gr.Row():
148
  extract_glb_btn = gr.Button("Extract GLB", interactive=False)
149
 
150
- with gr.Column():
151
- video_output = gr.Video(
 
152
  label="3D Preview",
153
  autoplay=True,
154
  loop=True,
@@ -162,7 +161,12 @@ with gr.Blocks(delete_cache=(600, 600)) as demo:
162
  )
163
 
164
  with gr.Row():
165
- download_glb = gr.DownloadButton(label="Download GLB", interactive=False)
 
 
 
 
 
166
 
167
  output_buf = gr.State()
168
 
 
13
  from trellis.pipelines import TrellisTextTo3DPipeline
14
  from trellis.representations import Gaussian, MeshExtractResult
15
  from trellis.utils import render_utils, postprocessing_utils
 
 
16
 
17
  MAX_SEED = np.iinfo(np.int32).max
18
  TMP_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'tmp')
 
145
  with gr.Row():
146
  extract_glb_btn = gr.Button("Extract GLB", interactive=False)
147
 
148
+ with gr.Column(scale=3, min_width=600):
149
+ with gr.Group():
150
+ video_output = gr.Video(
151
  label="3D Preview",
152
  autoplay=True,
153
  loop=True,
 
161
  )
162
 
163
  with gr.Row():
164
+ download_glb = gr.DownloadButton(
165
+ label="Download GLB File",
166
+ interactive=False,
167
+ variant="secondary",
168
+ size="lg"
169
+ )
170
 
171
  output_buf = gr.State()
172