File size: 550 Bytes
02ef7a1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"""
Hugging Face Spaces entry point for Classics RAG QA.

This file is the entry point for Hugging Face Spaces deployment.
It imports and launches the Gradio app from src/app.py.
"""
from src.app import launch_app

# Launch the app with paths relative to project root
# HF Spaces runs from the repository root
demo = launch_app(
    config_path="configs/app.yaml",
    index_dir="data/index"
)

# For HF Spaces, we need to expose the interface
# The interface will be automatically detected by HF Spaces
if __name__ == "__main__":
    demo.launch()