File size: 505 Bytes
b106f38
 
 
 
 
b5af39b
 
 
 
 
b106f38
 
 
 
 
 
 
 
 
 
 
 
 
 
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
"""Hugging Face Spaces Entrypoint.

Launches the PDF Knowledge Assistant Gradio interface.
"""

try:
    import spaces
except Exception:
    pass

from app.config import get_settings, setup_logging
from app.ui.gradio_app import create_ui


if __name__ == "__main__":
    settings = get_settings()
    setup_logging(settings.log_level)
    demo = create_ui()
    demo.launch(
        server_name=settings.app_host,
        server_port=7860,  # Standard Hugging Face Spaces port
        share=False,
    )