| import gradio as gr |
| import random |
|
|
| _TITLE = ''' |
| # Sparc3D: Next-Gen High-Resolution 3D Model Generation |
| ''' |
|
|
| _DESCRIPTION = ''' |
| <span style="color: #000;font-size: 22px;font-weight: 600;">Powered by Math Magic AI Research, NTU & IC | </span> |
| <a style="font-size: 22px;font-weight: 600;" href="https://arxiv.org/abs/2505.14521" target="_blank" rel="noopener noreferrer" >Arxiv</a> | |
| <a style="font-size: 22px;font-weight: 600;" href="https://lizhihao6.github.io/Sparc3D/" target="_blank" rel="noopener noreferrer">Project Page</a> | |
| <span style="color: #000;font-size: 22px;font-weight: 600;">Official Product:</span><a style="font-size: 22px;font-weight: 600;" href="https://hitem3d.ai?sp_source=huggingface/" target="_blank" rel="noopener noreferrer">Hitem3D</a> |
| ''' |
|
|
|
|
|
|
| _CITE_ = r""" |
| --- |
| 📝 **Citation** |
| If you find our work useful for your research or applications, please cite using this bibtex: |
| ```bibtex |
| @article{li2025sparc3d, |
| title = {Sparc3D: Sparse Representation and Construction for High-Resolution 3D Shapes Modeling}, |
| author = {Li, Zhihao and Wang, Yufei and Zheng, Heliang and Luo, Yihao and Wen, Bihan}, |
| journal = {arXiv preprint arXiv:2505.14521}, |
| year = {2025} |
| } |
| ``` |
| 📧 **Contact** |
| Your feedback means a lot to us. Feel free to share your thoughts or reach out anytime at contact@hitem3d.ai — we’d love to hear from you! |
| """ |
|
|
| html = ''' |
| <!DOCTYPE html> |
| <html> |
| <body> |
| <iframe id="myIframe" width="100%" height="1125" frameborder="0"></iframe> |
| </body> |
| </html> |
| ''' |
|
|
| script = ''' |
| function createGradio() { |
| const urls = [ |
| "https://3dserver.hitem3d.ai/" |
| ]; |
| const randomIndex = Math.floor(Math.random() * urls.length); |
| document.getElementById("myIframe").src = urls[randomIndex]; |
| } |
| ''' |
|
|
|
|
|
|
| with gr.Blocks(js=script) as demo: |
| gr.Markdown(_TITLE) |
| gr.HTML(_DESCRIPTION) |
| gr.HTML(html) |
| gr.Markdown(_CITE_) |
|
|
| if __name__ == "__main__": |
| demo.launch() |
|
|