Spaces:
Running on Zero
Running on Zero
File size: 650 Bytes
88fe4e7 93a00cf 88fe4e7 a2791ca 88fe4e7 | 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 26 27 28 29 | import gradio as gr
from src.ui.components import build_ui
from src.conversation.assistant import SightLineAssistant
from src.config import CONFIG
from src.ui.styles import CSS
import threading
def main():
print(f"Starting {CONFIG.APP_NAME} v{CONFIG.APP_VERSION}")
assistant = SightLineAssistant()
# Load model synchronously for ZeroGPU compatibility
assistant.initialize()
demo = build_ui(assistant)
demo.launch(
server_name="0.0.0.0",
server_port=7860,
share=False,
debug=True,
ssr_mode=False
)
if __name__ == "__main__":
main()
|