Spaces:
Running
Running
esemsc-am4224 commited on
Commit ·
5ef0ab2
1
Parent(s): 269b55b
feat: multi-page streamlit app with both the demo 'interface.py' and retrieval-only ui 'retrieval.py'
Browse files
.streamlit/config.toml
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[client]
|
| 2 |
+
showSidebarNavigation = false
|
interface.py → pages/interface.py
RENAMED
|
@@ -160,8 +160,8 @@ class AgentBaseUI:
|
|
| 160 |
|
| 161 |
if __name__ == "__main__":
|
| 162 |
BASE_DIR = Path(__file__).resolve().parent
|
| 163 |
-
agentbase_path = BASE_DIR / "data/agentbase-v1.1.csv"
|
| 164 |
-
platforms_path = BASE_DIR / "data/platforms.csv"
|
| 165 |
|
| 166 |
agentbaseui = AgentBaseUI(agentbase_path, platforms_path)
|
| 167 |
agentbaseui.header_panel()
|
|
|
|
| 160 |
|
| 161 |
if __name__ == "__main__":
|
| 162 |
BASE_DIR = Path(__file__).resolve().parent
|
| 163 |
+
agentbase_path = BASE_DIR / "../data/agentbase-v1.1.csv"
|
| 164 |
+
platforms_path = BASE_DIR / "../data/platforms.csv"
|
| 165 |
|
| 166 |
agentbaseui = AgentBaseUI(agentbase_path, platforms_path)
|
| 167 |
agentbaseui.header_panel()
|
retrieval_interface.py → pages/retrieval.py
RENAMED
|
@@ -207,8 +207,8 @@ def copy_button(text: str, label: str):
|
|
| 207 |
|
| 208 |
if __name__ == "__main__":
|
| 209 |
BASE_DIR = Path(__file__).resolve().parent
|
| 210 |
-
agentbase_path = BASE_DIR / "data/agentbase-v1.1.csv"
|
| 211 |
-
platforms_path = BASE_DIR / "data/platforms.csv"
|
| 212 |
|
| 213 |
agentbaseui = AgentBaseUI(agentbase_path, platforms_path)
|
| 214 |
agentbaseui.header_panel()
|
|
|
|
| 207 |
|
| 208 |
if __name__ == "__main__":
|
| 209 |
BASE_DIR = Path(__file__).resolve().parent
|
| 210 |
+
agentbase_path = BASE_DIR / "../data/agentbase-v1.1.csv"
|
| 211 |
+
platforms_path = BASE_DIR / "../data/platforms.csv"
|
| 212 |
|
| 213 |
agentbaseui = AgentBaseUI(agentbase_path, platforms_path)
|
| 214 |
agentbaseui.header_panel()
|
streamlit_app.py
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
|
| 3 |
+
st.set_page_config(layout="wide")
|
| 4 |
+
st.switch_page("pages/retrieval.py")
|