Spaces:
Runtime error
Runtime error
Upload gradio_app.py
Browse files- gradio_app.py +4 -2
gradio_app.py
CHANGED
|
@@ -664,7 +664,7 @@ if __name__ == '__main__':
|
|
| 664 |
parser.add_argument("--model_path", type=str, default='tencent/Hunyuan3D-2mv')
|
| 665 |
parser.add_argument("--subfolder", type=str, default='hunyuan3d-dit-v2-mv-turbo')
|
| 666 |
parser.add_argument("--texgen_model_path", type=str, default='tencent/Hunyuan3D-2')
|
| 667 |
-
parser.add_argument('--port', type=
|
| 668 |
parser.add_argument('--host', type=str, default='0.0.0.0')
|
| 669 |
parser.add_argument('--device', type=str, default='cuda')
|
| 670 |
parser.add_argument('--mc_algo', type=str, default='mc')
|
|
@@ -707,7 +707,9 @@ if __name__ == '__main__':
|
|
| 707 |
</div>
|
| 708 |
"""
|
| 709 |
|
| 710 |
-
gr.Interface(fn=my_gpu_function, inputs=[], outputs="text")
|
|
|
|
|
|
|
| 711 |
example_is = get_example_img_list()
|
| 712 |
example_ts = get_example_txt_list()
|
| 713 |
example_mvs = get_example_mv_list()
|
|
|
|
| 664 |
parser.add_argument("--model_path", type=str, default='tencent/Hunyuan3D-2mv')
|
| 665 |
parser.add_argument("--subfolder", type=str, default='hunyuan3d-dit-v2-mv-turbo')
|
| 666 |
parser.add_argument("--texgen_model_path", type=str, default='tencent/Hunyuan3D-2')
|
| 667 |
+
parser.add_argument('--port', type=int, default=7860)
|
| 668 |
parser.add_argument('--host', type=str, default='0.0.0.0')
|
| 669 |
parser.add_argument('--device', type=str, default='cuda')
|
| 670 |
parser.add_argument('--mc_algo', type=str, default='mc')
|
|
|
|
| 707 |
</div>
|
| 708 |
"""
|
| 709 |
|
| 710 |
+
demo = gr.Interface(fn=my_gpu_function, inputs=[], outputs="text")
|
| 711 |
+
demo.launch()
|
| 712 |
+
|
| 713 |
example_is = get_example_img_list()
|
| 714 |
example_ts = get_example_txt_list()
|
| 715 |
example_mvs = get_example_mv_list()
|