SightLine / app /main.py
LovnishVerma's picture
Upload 41 files
a4cedc5 verified
Raw
History Blame Contribute Delete
665 Bytes
import gradio as gr
from app.ui.components import build_ui
from app.conversation.assistant import SightLineAssistant
from app.config import CONFIG
from app.ui.styles import CSS
import threading
def main():
print(f"Starting {CONFIG.APP_NAME} v{CONFIG.APP_VERSION}")
assistant = SightLineAssistant()
# Load model in background thread for instant UI rendering
threading.Thread(target=assistant.initialize, daemon=True).start()
demo = build_ui(assistant)
demo.launch(
server_name="0.0.0.0",
server_port=7860,
share=False,
debug=True,
css=CSS
)
if __name__ == "__main__":
main()