Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
| from flask import Flask, render_template_string | |
| app = Flask(__name__) | |
| HTML = """ | |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Maintenance</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| </head> | |
| <body class="bg-gray-100 flex items-center justify-center h-screen"> | |
| <div class="bg-white p-8 rounded-2xl shadow-lg text-center max-w-md"> | |
| <svg class="mx-auto mb-4 w-16 h-16 text-yellow-500" fill="none" stroke="currentColor" stroke-width="1.5" | |
| viewBox="0 0 24 24"> | |
| <path stroke-linecap="round" stroke-linejoin="round" | |
| d="M12 9v2m0 4h.01M4.93 4.93a10 10 0 0114.14 0 10 10 0 010 14.14 10 10 0 01-14.14 0 10 10 0 010-14.14z"/> | |
| </svg> | |
| <h1 class="text-2xl font-bold text-gray-800 mb-2">We'll be back soon!</h1> | |
| <p class="text-gray-600">The TTS Arena is temporarily undergoing maintenance.<br>Thank you for your patience.</p> | |
| </div> | |
| </body> | |
| </html> | |
| """ | |
| def maintenance(): | |
| return render_template_string(HTML) | |
| if __name__ == "__main__": | |
| app.run(host="0.0.0.0", port=7860) | |