NAIA / app.py
baqu2213's picture
Upload app.py
a31853e verified
raw
history blame contribute delete
850 Bytes
"""
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()