Spaces:
Runtime error
Runtime error
Upload gradio_app.py
Browse files- gradio_app.py +10 -1
gradio_app.py
CHANGED
@@ -411,7 +411,6 @@ def build_app():
|
|
411 |
"""
|
412 |
|
413 |
with gr.Blocks(theme=gr.themes.Base(), title='Hunyuan-3D-2.0', analytics_enabled=False, css=custom_css) as demo:
|
414 |
-
gr.HTML("<script type='module' src='https://unpkg.com/@google/model-viewer/dist/model-viewer.min.js'></script>")
|
415 |
gr.HTML(title_html)
|
416 |
|
417 |
with gr.Row():
|
@@ -497,6 +496,16 @@ def build_app():
|
|
497 |
with gr.Column(scale=9):
|
498 |
with gr.Tabs(selected='gen_mesh_panel') as tabs_output:
|
499 |
with gr.Tab('Generated Mesh', id='gen_mesh_panel'):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
500 |
html_gen_mesh = gr.HTML(HTML_OUTPUT_PLACEHOLDER, label='Output')
|
501 |
with gr.Tab('Exporting Mesh', id='export_mesh_panel'):
|
502 |
html_export_mesh = gr.HTML(HTML_OUTPUT_PLACEHOLDER, label='Output')
|
|
|
411 |
"""
|
412 |
|
413 |
with gr.Blocks(theme=gr.themes.Base(), title='Hunyuan-3D-2.0', analytics_enabled=False, css=custom_css) as demo:
|
|
|
414 |
gr.HTML(title_html)
|
415 |
|
416 |
with gr.Row():
|
|
|
496 |
with gr.Column(scale=9):
|
497 |
with gr.Tabs(selected='gen_mesh_panel') as tabs_output:
|
498 |
with gr.Tab('Generated Mesh', id='gen_mesh_panel'):
|
499 |
+
html_model_viewer="""
|
500 |
+
<script type="module" src="https://unpkg.com/@google/model-viewer/dist/model-viewer.min.js"></script>
|
501 |
+
<model-viewer src="https://modelviewer.dev/shared-assets/models/Astronaut.glb"
|
502 |
+
alt="A 3D model of an astronaut"
|
503 |
+
auto-rotate
|
504 |
+
camera-controls
|
505 |
+
style="height: 500px; width: 500px;">
|
506 |
+
</model-viewer>
|
507 |
+
"""
|
508 |
+
gr.HTML(html_model_viewer)
|
509 |
html_gen_mesh = gr.HTML(HTML_OUTPUT_PLACEHOLDER, label='Output')
|
510 |
with gr.Tab('Exporting Mesh', id='export_mesh_panel'):
|
511 |
html_export_mesh = gr.HTML(HTML_OUTPUT_PLACEHOLDER, label='Output')
|