Sparc3D / app.py
ilcve21's picture
Update app.py
c9b3bd5 verified
raw
history blame
1.94 kB
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/)
'''
_INFO1 = '''
### Our Hugging Face demo is currently under attack and has been temporarily taken offline for emergency maintenance. We’re working to bring it back online in 2–3 days, once everything is stable.
'''
_INFO2 = '''
### In the meantime, feel free to explore our 3D generation features on Hitem3D(with 5 free generations per day), powered by Sparc3D. We’ll continue expanding Hitem3D with more professional tools, including texture generation, retopology, and more. Premium features and member-only experiences are also on the way. We hope you have a great time creating with [Hitem3D](https://hitem3d.ai)!
'''
_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}
}
```
"""
html = '''
<!DOCTYPE html>
<html>
<body>
<iframe id="myIframe" width="100%" height="1320" frameborder="0"></iframe>
</body>
</html>
'''
script = '''
function createGradio() {
const urls = [
"https://3dserver.hitems.ai/"
];
const randomIndex = Math.floor(Math.random() * urls.length);
document.getElementById("myIframe").src = urls[randomIndex];
}
'''
with gr.Blocks() as demo:
gr.Markdown(_TITLE)
gr.Markdown(_DESCRIPTION)
# gr.HTML(html)
gr.Markdown(_INFO1)
gr.Markdown(_INFO2)
gr.Markdown(_CITE_)
if __name__ == "__main__":
demo.launch()