MohamedRashad commited on
Commit
2175b47
·
1 Parent(s): b1e0411

Replace LitModel3D with gr.Model3D for 3D asset generation in app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,6 +1,6 @@
1
  import gradio as gr
2
  import spaces
3
- from gradio_litmodel3d import LitModel3D
4
 
5
  import os
6
  os.environ['SPCONV_ALGO'] = 'native'
@@ -256,8 +256,8 @@ with gr.Blocks(title="Game Items Generator") as demo:
256
 
257
  with gr.Column():
258
  video_output = gr.Video(label="Generated 3D Asset", autoplay=True, loop=True, height=300)
259
- model_output = LitModel3D(label="Extracted GLB", exposure=20.0, height=300)
260
- # model_output = gr.Model3D(label="Extracted GLB", height=300)
261
  download_glb = gr.DownloadButton(label="Download GLB", interactive=False)
262
 
263
  trial_id = gr.Textbox(visible=False)
 
1
  import gradio as gr
2
  import spaces
3
+ # from gradio_litmodel3d import LitModel3D
4
 
5
  import os
6
  os.environ['SPCONV_ALGO'] = 'native'
 
256
 
257
  with gr.Column():
258
  video_output = gr.Video(label="Generated 3D Asset", autoplay=True, loop=True, height=300)
259
+ # model_output = LitModel3D(label="Extracted GLB", exposure=20.0, height=300)
260
+ model_output = gr.Model3D(label="Extracted GLB", height=300)
261
  download_glb = gr.DownloadButton(label="Download GLB", interactive=False)
262
 
263
  trial_id = gr.Textbox(visible=False)