Huiwenshi commited on
Commit
9977009
1 Parent(s): 923d0ff

Upload app_hg.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app_hg.py +3 -23
app_hg.py CHANGED
@@ -115,33 +115,14 @@ CONST_MAX_QUEUE = 1
115
  CONST_SERVER = '0.0.0.0'
116
 
117
  CONST_HEADER = '''
118
- <h2><b>Official 🤗 Gradio Demo</b></h2><h2><a href='https://github.com/tencent/Hunyuan3D-1' target='_blank'><b>Tencent Hunyuan3D-1.0: A Unified Framework for Text-to-3D and Image-to-3D Generation</b></a></h2>
119
- Code: <a href='https://github.com/tencent/Hunyuan3D-1' target='_blank'>GitHub</a>. Techenical report: <a href='https://arxiv.org/pdf/2411.02293' target='_blank'>ArXiv</a>.
120
 
121
  ❗️❗️❗️**Important Notes:**
122
  - By default, our demo can export a .obj mesh with vertex colors or a .glb mesh.
123
- - If you select "texture mapping," it will export a .obj mesh with a texture map or a .glb mesh.
124
- - If you select "render GIF," it will export a GIF image rendering of the .glb file.
125
  - If the result is unsatisfactory, please try a different seed value (Default: 0).
126
  '''
127
 
128
- CONST_CITATION = r"""
129
- If Hunyuan3D-1.0 is helpful, please help to ⭐ the <a href='https://github.com/tencent/Hunyuan3D-1' target='_blank'>Github Repo</a>. Thanks! [![GitHub Stars](https://img.shields.io/github/stars/tencent/Hunyuan3D-1?style=social)](https://github.com/tencent/Hunyuan3D-1)
130
- ---
131
- 📝 **Citation**
132
- If you find our work useful for your research or applications, please cite using this bibtex:
133
- ```bibtex
134
- @misc{yang2024tencent,
135
- title={Tencent Hunyuan3D-1.0: A Unified Framework for Text-to-3D and Image-to-3D Generation},
136
- author={Xianghui Yang and Huiwen Shi and Bowen Zhang and Fan Yang and Jiacheng Wang and Hongxu Zhao and Xinhai Liu and Xinzhou Wang and Qingxiang Lin and Jiaao Yu and Lifu Wang and Zhuo Chen and Sicong Liu and Yuhong Liu and Yong Yang and Di Wang and Jie Jiang and Chunchao Guo},
137
- year={2024},
138
- eprint={2411.02293},
139
- archivePrefix={arXiv},
140
- primaryClass={cs.CV}
141
- }
142
- ```
143
- """
144
-
145
  ################################################################
146
 
147
  def get_example_img_list():
@@ -385,7 +366,6 @@ with gr.Blocks() as demo:
385
 
386
  #===============================================================
387
 
388
- gr.Markdown(CONST_CITATION)
389
- demo.queue(max_size=CONST_MAX_QUEUE)
390
  demo.launch()
391
 
 
115
  CONST_SERVER = '0.0.0.0'
116
 
117
  CONST_HEADER = '''
118
+ <h2><a href='https://github.com/tencent/Hunyuan3D-1' target='_blank'><b>Tencent Hunyuan3D-1.0: A Unified Framework for Text-to-3D and Image-to-3D Generation</b></a></h2>
119
+ Techenical report: <a href='https://arxiv.org/pdf/2411.02293' target='_blank'>ArXiv</a>.Code: <a href='https://github.com/tencent/Hunyuan3D-1' target='_blank'>GitHub</a>.
120
 
121
  ❗️❗️❗️**Important Notes:**
122
  - By default, our demo can export a .obj mesh with vertex colors or a .glb mesh.
 
 
123
  - If the result is unsatisfactory, please try a different seed value (Default: 0).
124
  '''
125
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
126
  ################################################################
127
 
128
  def get_example_img_list():
 
366
 
367
  #===============================================================
368
 
369
+ demo.queue()
 
370
  demo.launch()
371