Spaces:
Running
Running
File size: 5,162 Bytes
480f33b 27b16f4 480f33b 27b16f4 480f33b 27b16f4 480f33b 27b16f4 480f33b 5bd7177 1a5db40 5bd7177 480f33b 1a5db40 480f33b 5bd7177 480f33b 5bd7177 480f33b 5bd7177 480f33b 5bd7177 480f33b 5bd7177 480f33b 5bd7177 480f33b 5bd7177 480f33b 27b16f4 480f33b 5bd7177 1a5db40 480f33b 5bd7177 480f33b 5bd7177 480f33b 5bd7177 480f33b 5bd7177 480f33b 5bd7177 480f33b 27b16f4 480f33b 27b16f4 480f33b 5bd7177 27b16f4 480f33b 27b16f4 480f33b 27b16f4 480f33b 27b16f4 480f33b 27b16f4 1a5db40 27b16f4 480f33b 1a5db40 27b16f4 5bd7177 27b16f4 1a5db40 480f33b 27b16f4 480f33b 27b16f4 5bd7177 27b16f4 480f33b 27b16f4 480f33b 27b16f4 1a5db40 480f33b 1a5db40 480f33b 27b16f4 480f33b |
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 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
TRELLIS Maintenance Notice Interface (Production)
Requirements: Python 3.8+ and Gradio 4.*
"""
import gradio as gr
def create_notice_interface():
"""Build the maintenance notice interface."""
# Custom CSS (clean blue theme, no animation)
custom_css = """
.notice-container {
background-color: #3B82F6;
padding: 1.5rem;
border-radius: 12px;
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
text-align: center;
margin: 2rem auto;
max-width: 600px;
}
.notice-title {
color: #fff;
font-size: 1.8rem;
font-weight: 700;
margin-bottom: 0.6rem;
}
.notice-subtitle {
color: #f0f0f0;
font-size: 1rem;
line-height: 1.6;
margin-bottom: 1.5rem;
}
.maintenance-icon {
font-size: 2.5rem;
margin-bottom: 0.5rem;
display: block;
}
.redirect-button, .redirect-button-blue {
background-color: #2563EB;
color: white;
padding: 10px 24px;
border: none;
border-radius: 6px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
text-decoration: none;
display: inline-block;
margin: 0.5rem 0.4rem;
}
.redirect-button:hover, .redirect-button-blue:hover {
background-color: #1D4ED8;
}
.status-card {
background: #ffffff;
border-radius: 12px;
padding: 1.5rem;
margin: 2rem auto;
max-width: 700px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.status-text {
color: #333;
font-size: 1rem;
line-height: 1.6;
margin-bottom: 1rem;
}
.highlight-text {
color: #2563EB;
font-weight: bold;
}
.footer-text {
color: #888;
font-size: 0.85rem;
text-align: center;
margin-top: 2rem;
}
"""
with gr.Blocks(
css=custom_css,
theme=gr.themes.Soft(),
title="TRELLIS - Service Temporarily Unavailable",
) as demo:
# Top notice banner with alternative service buttons
gr.HTML(
"""
<div class="notice-container">
<div class="maintenance-icon">🔧</div>
<h1 class="notice-title">Service Under Maintenance</h1>
<p class="notice-subtitle">
We apologize for the inconvenience. The TRELLIS space is currently undergoing maintenance and upgrades.<br>
We are working hard to improve our service and will be back soon.
</p>
<a href="https://image-to-3d.wingetgui.com/" target="_blank"
class="redirect-button">
Hunyuan3D 1.0 (no user GPU required)
</a>
<a href="https://partpacker.wingetgui.com/" target="_blank"
class="redirect-button-blue">
Partpacker (Recommended)
</a>
<a href="https://hunyuan3d21.wingetgui.com/" target="_blank"
class="redirect-button-blue">
Hunyuan3D 2.1
</a>
</div>
"""
)
# Feature card
gr.HTML(
"""
<div class="status-card">
<div class="status-text">
🚀 <span class="highlight-text">Good News!</span><br><br>
Fully functional alternative services are ready for you:
</div>
<div class="status-text">
✨ <strong>Key Features:</strong><br>
• 🖼️ Image-to-3D model conversion (Hunyuan3D 1.0 / 2.1)<br>
• ⚡ Fast processing, <strong>no user GPU required for Hunyuan3D 1.0</strong><br>
• 🎨 High-quality output<br>
• 💻 100% browser-based, no installation needed
</div>
<div style="text-align: center;">
<a href="https://image-to-3d.wingetgui.com/" target="_blank"
class="redirect-button">
Hunyuan3D 1.0 (no user GPU required)
</a>
<a href="https://partpacker.wingetgui.com/" target="_blank"
class="redirect-button-blue">
Partpacker (Recommended)
</a>
<a href="https://hunyuan3d21.wingetgui.com/" target="_blank"
class="redirect-button-blue">
Hunyuan3D 2.1
</a>
</div>
</div>
"""
)
# Footer
gr.HTML(
"""
<div class="footer-text">
Thank you for choosing TRELLIS | We are committed to providing you with the best 3D generation experience
</div>
"""
)
return demo
if __name__ == "__main__":
# Start the Gradio application
app = create_notice_interface()
app.launch(
server_name="0.0.0.0",
server_port=7860,
share=False,
show_error=True,
quiet=False,
)
|