Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -20,20 +20,6 @@ import hashlib
|
|
20 |
from langchain.tools.retriever import create_retriever_tool
|
21 |
from datetime import datetime
|
22 |
|
23 |
-
# ------------------------------
|
24 |
-
# Set Streamlit Page Config Early
|
25 |
-
# ------------------------------
|
26 |
-
st.set_page_config(
|
27 |
-
page_title="AI Research Assistant Pro",
|
28 |
-
layout="wide",
|
29 |
-
initial_sidebar_state="expanded",
|
30 |
-
menu_items={
|
31 |
-
'Get Help': 'https://example.com/docs',
|
32 |
-
'Report a bug': 'https://example.com/issues',
|
33 |
-
'About': "v2.1 | Enhanced Research Assistant"
|
34 |
-
}
|
35 |
-
)
|
36 |
-
|
37 |
# ------------------------------
|
38 |
# Data Definitions
|
39 |
# ------------------------------
|
@@ -360,7 +346,7 @@ workflow.add_edge("rewrite", "agent")
|
|
360 |
app = workflow.compile()
|
361 |
|
362 |
# ------------------------------
|
363 |
-
# Streamlit UI
|
364 |
# ------------------------------
|
365 |
class UITheme:
|
366 |
primary_color = "#2E86C1"
|
@@ -406,6 +392,17 @@ class UITheme:
|
|
406 |
def main():
|
407 |
UITheme.apply()
|
408 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
409 |
with st.sidebar:
|
410 |
st.header("📂 Knowledge Bases")
|
411 |
with st.expander("Research Database", expanded=True):
|
@@ -485,4 +482,4 @@ def main():
|
|
485 |
""")
|
486 |
|
487 |
if __name__ == "__main__":
|
488 |
-
main()
|
|
|
20 |
from langchain.tools.retriever import create_retriever_tool
|
21 |
from datetime import datetime
|
22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
# ------------------------------
|
24 |
# Data Definitions
|
25 |
# ------------------------------
|
|
|
346 |
app = workflow.compile()
|
347 |
|
348 |
# ------------------------------
|
349 |
+
# Streamlit UI
|
350 |
# ------------------------------
|
351 |
class UITheme:
|
352 |
primary_color = "#2E86C1"
|
|
|
392 |
def main():
|
393 |
UITheme.apply()
|
394 |
|
395 |
+
st.set_page_config(
|
396 |
+
page_title="AI Research Assistant Pro",
|
397 |
+
layout="wide",
|
398 |
+
initial_sidebar_state="expanded",
|
399 |
+
menu_items={
|
400 |
+
'Get Help': 'https://example.com/docs',
|
401 |
+
'Report a bug': 'https://example.com/issues',
|
402 |
+
'About': "v2.1 | Enhanced Research Assistant"
|
403 |
+
}
|
404 |
+
)
|
405 |
+
|
406 |
with st.sidebar:
|
407 |
st.header("📂 Knowledge Bases")
|
408 |
with st.expander("Research Database", expanded=True):
|
|
|
482 |
""")
|
483 |
|
484 |
if __name__ == "__main__":
|
485 |
+
main()
|