BODDUSWATHISREE commited on
Commit
41f992b
·
verified ·
1 Parent(s): eb6d1ea

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +7 -5
src/streamlit_app.py CHANGED
@@ -12,17 +12,19 @@ import plotly.graph_objects as go
12
  from plotly.subplots import make_subplots
13
  import plotly.express as px
14
 
 
 
 
 
 
 
15
  # Fix for Hugging Face Spaces permissions
16
  import os
17
  import tempfile
18
  os.environ['STREAMLIT_BROWSER_GATHER_USAGE_STATS'] = 'false'
19
  os.environ['MPLCONFIGDIR'] = tempfile.gettempdir()
20
 
21
- # --- Session state initialization ---
22
- if 'uploaded_image' not in st.session_state:
23
- st.session_state['uploaded_image'] = None
24
- if 'analysis_complete' not in st.session_state:
25
- st.session_state['analysis_complete'] = False
26
 
27
 
28
  # Page configuration
 
12
  from plotly.subplots import make_subplots
13
  import plotly.express as px
14
 
15
+ # --- Session state initialization ---
16
+ if 'uploaded_image' not in st.session_state:
17
+ st.session_state['uploaded_image'] = None
18
+ if 'analysis_complete' not in st.session_state:
19
+ st.session_state['analysis_complete'] = False
20
+
21
  # Fix for Hugging Face Spaces permissions
22
  import os
23
  import tempfile
24
  os.environ['STREAMLIT_BROWSER_GATHER_USAGE_STATS'] = 'false'
25
  os.environ['MPLCONFIGDIR'] = tempfile.gettempdir()
26
 
27
+
 
 
 
 
28
 
29
 
30
  # Page configuration