Spaces:
Runtime error
Runtime error
Ronio Jerico Roque commited on
Commit ·
ca19835
1
Parent(s): 835ca0d
feat: add initialize_analyze_session function to manage session state for analysis
Browse files
helper/initialize_analyze_session.py
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
|
| 3 |
+
def initialize_analyze_session():
|
| 4 |
+
if 'analyzing' not in st.session_state:
|
| 5 |
+
st.session_state['analyzing'] = False
|
| 6 |
+
return st.session_state.get('analyzing', False)
|
| 7 |
+
|