-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
34 lines (25 loc) · 652 Bytes
/
Copy pathapp.py
File metadata and controls
34 lines (25 loc) · 652 Bytes
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
30
31
32
33
34
"""
REFRAG – Streamlit Entrypoint
"""
import sys
from pathlib import Path
import streamlit as st
# Ensure project root is importable
ROOT_DIR = Path(__file__).resolve().parent
if str(ROOT_DIR) not in sys.path:
sys.path.insert(0, str(ROOT_DIR))
st.set_page_config(
page_title="Hams.AI REFRAG",
page_icon="H",
layout="wide",
initial_sidebar_state="expanded",
)
from frontend.pipeline import load_pipeline
from frontend.sidebar import render_sidebar
from frontend.chat import render_chat
def main():
pipeline = load_pipeline()
render_sidebar(pipeline)
render_chat(pipeline)
if __name__ == "__main__":
main()