rajuesaa commited on
Commit
d3cde2b
·
1 Parent(s): 6d43057

Fix: Ensure set_page_config is the first Streamlit command

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -11,8 +11,6 @@ warnings.filterwarnings("ignore", message=".*torch.classes.*")
11
  logging.getLogger("torch").setLevel(logging.ERROR)
12
 
13
  import streamlit as st
14
- from streamlit_calendar import calendar
15
- from utils import ContentExtractor, ForgeAI
16
 
17
  # Page Config must be first Streamlit command
18
  st.set_page_config(
@@ -22,6 +20,9 @@ st.set_page_config(
22
  initial_sidebar_state="expanded",
23
  )
24
 
 
 
 
25
  # Initialize ForgeAI with caching
26
  @st.cache_resource
27
  def get_forge():
 
11
  logging.getLogger("torch").setLevel(logging.ERROR)
12
 
13
  import streamlit as st
 
 
14
 
15
  # Page Config must be first Streamlit command
16
  st.set_page_config(
 
20
  initial_sidebar_state="expanded",
21
  )
22
 
23
+ from streamlit_calendar import calendar
24
+ from utils import ContentExtractor, ForgeAI
25
+
26
  # Initialize ForgeAI with caching
27
  @st.cache_resource
28
  def get_forge():