Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +5 -4
src/streamlit_app.py
CHANGED
|
@@ -286,11 +286,11 @@ def main():
|
|
| 286 |
if 'generated_content' not in st.session_state:
|
| 287 |
st.session_state.generated_content = ""
|
| 288 |
if 'seo_analysis' not in st.session_state:
|
| 289 |
-
st.session_state.seo_analysis = {}
|
| 290 |
-
# Header
|
| 291 |
st.title("SEO Content Writer")
|
| 292 |
st.write("AI-powered content creation with real-time SEO optimization")
|
| 293 |
-
|
|
|
|
| 294 |
with st.sidebar:
|
| 295 |
st.subheader("Workflow Progress")
|
| 296 |
|
|
@@ -308,7 +308,8 @@ def main():
|
|
| 308 |
st.write(f"→ **{step}**")
|
| 309 |
else:
|
| 310 |
st.write(f"○ {step}")
|
| 311 |
-
|
|
|
|
| 312 |
st.progress(progress)
|
| 313 |
st.write(f"**{int(progress * 100)}% Complete**")
|
| 314 |
|
|
|
|
| 286 |
if 'generated_content' not in st.session_state:
|
| 287 |
st.session_state.generated_content = ""
|
| 288 |
if 'seo_analysis' not in st.session_state:
|
| 289 |
+
st.session_state.seo_analysis = {} # Header
|
|
|
|
| 290 |
st.title("SEO Content Writer")
|
| 291 |
st.write("AI-powered content creation with real-time SEO optimization")
|
| 292 |
+
|
| 293 |
+
# Sidebar with workflow progress
|
| 294 |
with st.sidebar:
|
| 295 |
st.subheader("Workflow Progress")
|
| 296 |
|
|
|
|
| 308 |
st.write(f"→ **{step}**")
|
| 309 |
else:
|
| 310 |
st.write(f"○ {step}")
|
| 311 |
+
|
| 312 |
+
progress = (st.session_state.current_step + 1) / len(steps)
|
| 313 |
st.progress(progress)
|
| 314 |
st.write(f"**{int(progress * 100)}% Complete**")
|
| 315 |
|