Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
| """ | |
| NAIA-WEB - NAI Image Generation Web Interface | |
| Main application entry point | |
| For HuggingFace Spaces deployment | |
| """ | |
| import sys | |
| from pathlib import Path | |
| # Add project root to path for imports | |
| project_root = Path(__file__).parent | |
| sys.path.insert(0, str(project_root)) | |
| from ui.app_builder import build_app | |
| def main(): | |
| """Launch the Gradio application""" | |
| app = build_app() | |
| # Launch with settings appropriate for HuggingFace Spaces | |
| # Gradio 5.x: css and head are set in Blocks() constructor | |
| # SSR mode disabled due to component state issues | |
| app.launch( | |
| server_name="0.0.0.0", # localhost - ๋ธ๋ผ์ฐ์ ์์ http://localhost:7860 ์ ์ | |
| server_port=7860, | |
| share=False, | |
| show_error=True, | |
| ssr_mode=False | |
| ) | |
| if __name__ == "__main__": | |
| main() | |