Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,16 +6,13 @@ _TITLE = '''
|
|
| 6 |
'''
|
| 7 |
|
| 8 |
_DESCRIPTION = '''
|
| 9 |
-
## Powered by Math Magic AI Research, NTU & IC | [Arxiv](https://arxiv.org/abs/2505.14521) | [Project Page](https://lizhihao6.github.io/Sparc3D/)
|
| 10 |
'''
|
| 11 |
|
| 12 |
_INFO1 = '''
|
| 13 |
-
### Our
|
| 14 |
'''
|
| 15 |
|
| 16 |
-
_INFO2 = '''
|
| 17 |
-
### 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)!
|
| 18 |
-
'''
|
| 19 |
|
| 20 |
|
| 21 |
_CITE_ = r"""
|
|
@@ -30,13 +27,15 @@ If you find our work useful for your research or applications, please cite using
|
|
| 30 |
year = {2025}
|
| 31 |
}
|
| 32 |
```
|
|
|
|
|
|
|
| 33 |
"""
|
| 34 |
|
| 35 |
html = '''
|
| 36 |
<!DOCTYPE html>
|
| 37 |
<html>
|
| 38 |
<body>
|
| 39 |
-
<iframe id="myIframe" width="100%" height="
|
| 40 |
</body>
|
| 41 |
</html>
|
| 42 |
'''
|
|
@@ -44,7 +43,7 @@ html = '''
|
|
| 44 |
script = '''
|
| 45 |
function createGradio() {
|
| 46 |
const urls = [
|
| 47 |
-
"https://3dserver.
|
| 48 |
];
|
| 49 |
const randomIndex = Math.floor(Math.random() * urls.length);
|
| 50 |
document.getElementById("myIframe").src = urls[randomIndex];
|
|
@@ -53,13 +52,11 @@ function createGradio() {
|
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
-
|
| 57 |
-
with gr.Blocks() as demo:
|
| 58 |
gr.Markdown(_TITLE)
|
| 59 |
gr.Markdown(_DESCRIPTION)
|
| 60 |
-
# gr.HTML(html)
|
| 61 |
gr.Markdown(_INFO1)
|
| 62 |
-
gr.
|
| 63 |
gr.Markdown(_CITE_)
|
| 64 |
|
| 65 |
if __name__ == "__main__":
|
|
|
|
| 6 |
'''
|
| 7 |
|
| 8 |
_DESCRIPTION = '''
|
| 9 |
+
## 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/)
|
| 10 |
'''
|
| 11 |
|
| 12 |
_INFO1 = '''
|
| 13 |
+
### Our demo page is back online on Hugging Face! 🎉
|
| 14 |
'''
|
| 15 |
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
|
| 18 |
_CITE_ = r"""
|
|
|
|
| 27 |
year = {2025}
|
| 28 |
}
|
| 29 |
```
|
| 30 |
+
📧 **Contact**
|
| 31 |
+
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!
|
| 32 |
"""
|
| 33 |
|
| 34 |
html = '''
|
| 35 |
<!DOCTYPE html>
|
| 36 |
<html>
|
| 37 |
<body>
|
| 38 |
+
<iframe id="myIframe" width="100%" height="1125" frameborder="0"></iframe>
|
| 39 |
</body>
|
| 40 |
</html>
|
| 41 |
'''
|
|
|
|
| 43 |
script = '''
|
| 44 |
function createGradio() {
|
| 45 |
const urls = [
|
| 46 |
+
"https://3dserver.hitem3d.ai/"
|
| 47 |
];
|
| 48 |
const randomIndex = Math.floor(Math.random() * urls.length);
|
| 49 |
document.getElementById("myIframe").src = urls[randomIndex];
|
|
|
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
+
with gr.Blocks(js=script) as demo:
|
|
|
|
| 56 |
gr.Markdown(_TITLE)
|
| 57 |
gr.Markdown(_DESCRIPTION)
|
|
|
|
| 58 |
gr.Markdown(_INFO1)
|
| 59 |
+
gr.HTML(html)
|
| 60 |
gr.Markdown(_CITE_)
|
| 61 |
|
| 62 |
if __name__ == "__main__":
|