mgbam commited on
Commit
7dc7563
·
verified ·
1 Parent(s): 0b85296

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -12
app.py CHANGED
@@ -20,6 +20,20 @@ import hashlib
20
  from langchain.tools.retriever import create_retriever_tool
21
  from datetime import datetime
22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  # ------------------------------
24
  # Data Definitions
25
  # ------------------------------
@@ -346,7 +360,7 @@ workflow.add_edge("rewrite", "agent")
346
  app = workflow.compile()
347
 
348
  # ------------------------------
349
- # Streamlit UI
350
  # ------------------------------
351
  class UITheme:
352
  primary_color = "#2E86C1"
@@ -392,17 +406,6 @@ class UITheme:
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):
 
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
  app = workflow.compile()
361
 
362
  # ------------------------------
363
+ # Streamlit UI & Theme
364
  # ------------------------------
365
  class UITheme:
366
  primary_color = "#2E86C1"
 
406
  def main():
407
  UITheme.apply()
408
 
 
 
 
 
 
 
 
 
 
 
 
409
  with st.sidebar:
410
  st.header("📂 Knowledge Bases")
411
  with st.expander("Research Database", expanded=True):