|
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 [email protected] β 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.Markdown(_DESCRIPTION) |
|
gr.Markdown(_INFO1) |
|
gr.HTML(html) |
|
gr.Markdown(_CITE_) |
|
|
|
if __name__ == "__main__": |
|
demo.launch() |