File size: 498 Bytes
9f6bd24
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"""Project Intelligence Hub - Hugging Face Spaces Entry Point."""

import os

# Ensure environment variables are loaded from HF Secrets
# Users set these in Settings > Repository secrets on HF Spaces

from src.ui.gradio_app import GradioApp

if __name__ == "__main__":
    app = GradioApp()
    app.launch(
        server_name="0.0.0.0",
        server_port=7860,
        share=False,
    )
else:
    # For Hugging Face Spaces - module-level app object
    app = GradioApp()
    demo = app.build()