Spaces:
Running
Running
File size: 1,532 Bytes
c24a5b8 33eb073 2de894d c24a5b8 43d0ecd c24a5b8 981713a c24a5b8 6b6f8cb c24a5b8 33eb073 981713a c24a5b8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
import gradio as gr
import random
_TITLE = '''
# Sparc3D: Next-Gen High-Resolution 3D Model Generation
'''
_DESCRIPTION = '''
### Powered by Math Magic AI Research, NTU & ICL | [Arxiv](https://arxiv.org/pdf/2505.14521v2) | [Project Page](https://lizhihao6.github.io/Sparc3D/)
'''
_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="105%" height="1400" frameborder="0"></iframe>
</body>
</html>
'''
VIDEO_ID = "rbVpww5xoJw"
# ζι iframe η HTML
iframe_html = f"""
<iframe width="560" height="315"
src="https://www.youtube.com/embed/{VIDEO_ID}"
title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen>
</iframe>
"""
script = '''
function createGradio() {
document.getElementById("myIframe").src = ['https://3dserver.zaohaowu.com/'];
}
'''
with gr.Blocks(js=script) as demo:
gr.Markdown(_TITLE)
gr.Markdown(_DESCRIPTION)
gr.HTML(html)
gr.Markdown(_CITE_)
gr.HTML(iframe_html)
if __name__ == "__main__":
demo.launch() |