bluestyle97 commited on
Commit
36fd00b
1 Parent(s): 161cb1a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -21
app.py CHANGED
@@ -54,29 +54,26 @@ If you have any questions, feel free to open a discussion or contact us at <b>bl
54
  """
55
 
56
 
57
- with gr.Blocks(analytics_enabled=False, title='FreeSplatter Demo') as demo:
58
  gr.Markdown(_HEADER_)
 
59
 
60
- with gr.Tabs() as main_tabs:
61
- with gr.TabItem('Image-to-3D', id='tab_img_to_3d'):
62
- gr.Markdown(_IMG_TO_3D_HELP_)
63
-
64
- with gr.Tabs() as sub_tabs_img_to_3d:
65
- with gr.TabItem('Hunyuan3D Std', id='tab_hunyuan3d_std'):
66
- _, var_img_to_3d_hunyuan3d_std = create_interface_img_to_3d(
67
- runner.run_segmentation,
68
- runner.run_img_to_3d,
69
- model='Hunyuan3D Std')
70
- with gr.TabItem('Zero123++ v1.1', id='tab_zero123plus_v11'):
71
- _, var_img_to_3d_zero123plus_v11 = create_interface_img_to_3d(
72
- runner.run_segmentation,
73
- runner.run_img_to_3d,
74
- model='Zero123++ v1.1')
75
- with gr.TabItem('Zero123++ v1.2', id='tab_zero123plus_v12'):
76
- _, var_img_to_3d_zero123plus_v12 = create_interface_img_to_3d(
77
- runner.run_segmentation,
78
- runner.run_img_to_3d,
79
- model='Zero123++ v1.2')
80
 
81
  gr.Markdown(_CITE_)
82
 
 
54
  """
55
 
56
 
57
+ with gr.Blocks(analytics_enabled=False, title='FreeSplatter Demo', theme=gr.themes.Ocean()) as demo:
58
  gr.Markdown(_HEADER_)
59
+ gr.Markdown(_IMG_TO_3D_HELP_)
60
 
61
+ with gr.Tabs() as sub_tabs_img_to_3d:
62
+ with gr.TabItem('Hunyuan3D Std', id='tab_hunyuan3d_std'):
63
+ _, var_img_to_3d_hunyuan3d_std = create_interface_img_to_3d(
64
+ runner.run_segmentation,
65
+ runner.run_img_to_3d,
66
+ model='Hunyuan3D Std')
67
+ with gr.TabItem('Zero123++ v1.1', id='tab_zero123plus_v11'):
68
+ _, var_img_to_3d_zero123plus_v11 = create_interface_img_to_3d(
69
+ runner.run_segmentation,
70
+ runner.run_img_to_3d,
71
+ model='Zero123++ v1.1')
72
+ with gr.TabItem('Zero123++ v1.2', id='tab_zero123plus_v12'):
73
+ _, var_img_to_3d_zero123plus_v12 = create_interface_img_to_3d(
74
+ runner.run_segmentation,
75
+ runner.run_img_to_3d,
76
+ model='Zero123++ v1.2')
 
 
 
 
77
 
78
  gr.Markdown(_CITE_)
79