Spaces:
Sleeping
Sleeping
Try fix problem with empty session state
Browse files
app.py
CHANGED
|
@@ -43,7 +43,7 @@ st.markdown(
|
|
| 43 |
)
|
| 44 |
|
| 45 |
# Define the placeholder globally (outside columns)
|
| 46 |
-
if st.session_state.user_input:
|
| 47 |
placeholder = st.session_state.user_input
|
| 48 |
else:
|
| 49 |
placeholder = st.empty()
|
|
|
|
| 43 |
)
|
| 44 |
|
| 45 |
# Define the placeholder globally (outside columns)
|
| 46 |
+
if st.session_state && st.session_state.user_input:
|
| 47 |
placeholder = st.session_state.user_input
|
| 48 |
else:
|
| 49 |
placeholder = st.empty()
|