import gradio as gr _TITLE = ''' # Direct3D-S2 Gigascale 3D Generation Made Easy with Spatial Sparse Attention ''' _DESCRIPTION = ''' ### [GitHub](https://github.com/DreamTechAI/Direct3D-S2) | [Arxiv](https://arxiv.org/pdf/2505.17412) | [Project Page](https://www.neural4d.com/research/direct3d-s2) ''' _CITE_ = r""" --- 📝 **Citation** If you find our work useful for your research or applications, please cite using this bibtex: ```bibtex @article{wu2025direct3ds2gigascale3dgeneration, title={Direct3D-S2: Gigascale 3D Generation Made Easy with Spatial Sparse Attention}, author={Shuang Wu and Youtian Lin and Feihu Zhang and Yifei Zeng and Yikang Yang and Yajie Bao and Jiachen Qian and Siyu Zhu and Philip Torr and Xun Cao and Yao Yao}, journal={arXiv preprint arXiv:2505.17412}, year={2025} } ``` 📧 **Contact** If you have any questions, feel free to contact us at wushuang9811@outlook.com. """ html = '''
''' script = ''' function createGradio() { const urls = [ "https://api.zmkj.site/", "https://api1.zmkj.site/", "https://api2.zmkj.site/", "https://api3.zmkj.site/", "https://api4.zmkj.site/", ]; 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.HTML(html) gr.Markdown(_CITE_) demo.launch()