LazyHuman10 commited on
Commit ·
ca07346
1
Parent(s): ff90096
Add shared Plexi favicon assets
Browse files- Home.py +2 -1
- assets/logo.png +0 -0
- pages/Plexi-Assistant.py +2 -1
- pages/Study_Material_Hub.py +4 -1
- plexi-mcp-square-logo.svg +1 -0
- utils.py +2 -0
Home.py
CHANGED
|
@@ -1,11 +1,12 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
from utils import (
|
|
|
|
| 3 |
inject_theme,
|
| 4 |
render_page_header,
|
| 5 |
render_sidebar,
|
| 6 |
)
|
| 7 |
|
| 8 |
-
st.set_page_config(page_title="Plexi | Home", layout="wide")
|
| 9 |
inject_theme()
|
| 10 |
|
| 11 |
render_page_header(
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
from utils import (
|
| 3 |
+
APP_ICON_PATH,
|
| 4 |
inject_theme,
|
| 5 |
render_page_header,
|
| 6 |
render_sidebar,
|
| 7 |
)
|
| 8 |
|
| 9 |
+
st.set_page_config(page_title="Plexi | Home", page_icon=APP_ICON_PATH, layout="wide")
|
| 10 |
inject_theme()
|
| 11 |
|
| 12 |
render_page_header(
|
assets/logo.png
ADDED
|
pages/Plexi-Assistant.py
CHANGED
|
@@ -24,6 +24,7 @@ except ImportError:
|
|
| 24 |
EncryptedCookieManager = None
|
| 25 |
COOKIES_MANAGER_AVAILABLE = False
|
| 26 |
from utils import (
|
|
|
|
| 27 |
fetch_rag_index,
|
| 28 |
get_manifest,
|
| 29 |
inject_theme,
|
|
@@ -36,7 +37,7 @@ from utils import (
|
|
| 36 |
summarize_subject_catalog,
|
| 37 |
)
|
| 38 |
|
| 39 |
-
st.set_page_config(page_title="Plexi Assistant", layout="wide")
|
| 40 |
inject_theme()
|
| 41 |
|
| 42 |
TOP_K = 5
|
|
|
|
| 24 |
EncryptedCookieManager = None
|
| 25 |
COOKIES_MANAGER_AVAILABLE = False
|
| 26 |
from utils import (
|
| 27 |
+
APP_ICON_PATH,
|
| 28 |
fetch_rag_index,
|
| 29 |
get_manifest,
|
| 30 |
inject_theme,
|
|
|
|
| 37 |
summarize_subject_catalog,
|
| 38 |
)
|
| 39 |
|
| 40 |
+
st.set_page_config(page_title="Plexi Assistant", page_icon=APP_ICON_PATH, layout="wide")
|
| 41 |
inject_theme()
|
| 42 |
|
| 43 |
TOP_K = 5
|
pages/Study_Material_Hub.py
CHANGED
|
@@ -3,6 +3,7 @@ from html import escape
|
|
| 3 |
import streamlit as st
|
| 4 |
from streamlit_pdf_viewer import pdf_viewer
|
| 5 |
from utils import (
|
|
|
|
| 6 |
download_github_file,
|
| 7 |
get_manifest,
|
| 8 |
get_mime_type,
|
|
@@ -14,7 +15,9 @@ from utils import (
|
|
| 14 |
summarize_subject_catalog,
|
| 15 |
)
|
| 16 |
|
| 17 |
-
st.set_page_config(
|
|
|
|
|
|
|
| 18 |
inject_theme()
|
| 19 |
|
| 20 |
|
|
|
|
| 3 |
import streamlit as st
|
| 4 |
from streamlit_pdf_viewer import pdf_viewer
|
| 5 |
from utils import (
|
| 6 |
+
APP_ICON_PATH,
|
| 7 |
download_github_file,
|
| 8 |
get_manifest,
|
| 9 |
get_mime_type,
|
|
|
|
| 15 |
summarize_subject_catalog,
|
| 16 |
)
|
| 17 |
|
| 18 |
+
st.set_page_config(
|
| 19 |
+
page_title="Study Materials Hub", page_icon=APP_ICON_PATH, layout="wide"
|
| 20 |
+
)
|
| 21 |
inject_theme()
|
| 22 |
|
| 23 |
|
plexi-mcp-square-logo.svg
ADDED
|
|
utils.py
CHANGED
|
@@ -3,6 +3,7 @@ import mimetypes
|
|
| 3 |
import os
|
| 4 |
import tempfile
|
| 5 |
from html import escape
|
|
|
|
| 6 |
from string import Template
|
| 7 |
|
| 8 |
import PyPDF2
|
|
@@ -27,6 +28,7 @@ MATERIALS_REPO = os.getenv("MATERIALS_REPO", "KunalGupta25/plexi-materials")
|
|
| 27 |
MANIFEST_BRANCH = "main"
|
| 28 |
THEME_MODE_STATE_KEY = "plexi_theme_mode"
|
| 29 |
THEME_MODE_WIDGET_KEY = "_plexi_theme_mode_widget"
|
|
|
|
| 30 |
|
| 31 |
LIGHT_PALETTE = {
|
| 32 |
"ink": "#16312c",
|
|
|
|
| 3 |
import os
|
| 4 |
import tempfile
|
| 5 |
from html import escape
|
| 6 |
+
from pathlib import Path
|
| 7 |
from string import Template
|
| 8 |
|
| 9 |
import PyPDF2
|
|
|
|
| 28 |
MANIFEST_BRANCH = "main"
|
| 29 |
THEME_MODE_STATE_KEY = "plexi_theme_mode"
|
| 30 |
THEME_MODE_WIDGET_KEY = "_plexi_theme_mode_widget"
|
| 31 |
+
APP_ICON_PATH = str(Path(__file__).resolve().with_name("plexi-mcp-square-logo.svg"))
|
| 32 |
|
| 33 |
LIGHT_PALETTE = {
|
| 34 |
"ink": "#16312c",
|