import gradio as gr import random _TITLE = ''' # Sparc3D: Next-Gen High-Resolution 3D Model Generation ''' _DESCRIPTION = ''' ## Powered by Math Magic AI Research, NTU & IC | [Arxiv](https://arxiv.org/abs/2505.14521) | [Project Page](https://lizhihao6.github.io/Sparc3D/) | [Product Platform Hitem3D](https://hitem3d.ai/) ''' _INFO1 = ''' ### Our demo page is back online on Hugging Face! 🎉 ''' _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 = ''' ''' 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.Markdown(_DESCRIPTION) gr.Markdown(_INFO1) gr.HTML(html) gr.Markdown(_CITE_) if __name__ == "__main__": demo.launch()