Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -221,25 +221,27 @@ class GEOSEOApp:
|
|
| 221 |
return
|
| 222 |
|
| 223 |
# Display results
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
scores = result.get("scores", {})
|
| 228 |
-
if scores:
|
| 229 |
-
col1, col2, col3 = st.columns(3)
|
| 230 |
-
|
| 231 |
-
with col1:
|
| 232 |
-
clarity = scores.get("clarity", 0)
|
| 233 |
-
st.metric("Clarity", f"{clarity}/10")
|
| 234 |
-
|
| 235 |
-
with col2:
|
| 236 |
-
structure = scores.get("structuredness", 0)
|
| 237 |
-
st.metric("Structure", f"{structure}/10")
|
| 238 |
-
|
| 239 |
-
with col3:
|
| 240 |
-
answerability = scores.get("answerability", 0)
|
| 241 |
-
st.metric("Answerability", f"{answerability}/10")
|
| 242 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 243 |
# Show keywords
|
| 244 |
keywords = result.get("keywords", [])
|
| 245 |
if keywords:
|
|
@@ -248,7 +250,7 @@ class GEOSEOApp:
|
|
| 248 |
|
| 249 |
# Show optimized content
|
| 250 |
optimized_text = result.get("optimized_text", "")
|
| 251 |
-
if optimized_text and not analyze_only:
|
| 252 |
st.markdown("#### ✨ Optimized Content")
|
| 253 |
st.text_area(
|
| 254 |
"Enhanced version:",
|
|
|
|
| 221 |
return
|
| 222 |
|
| 223 |
# Display results
|
| 224 |
+
if not analyze_only:
|
| 225 |
+
st.success("Content analysis and enhancement completed successfully!")
|
| 226 |
+
st.markdown("### 📊 Analysis Results")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 227 |
|
| 228 |
+
# Show scores
|
| 229 |
+
scores = result.get("scores", {})
|
| 230 |
+
if scores:
|
| 231 |
+
col1, col2, col3 = st.columns(3)
|
| 232 |
+
|
| 233 |
+
with col1:
|
| 234 |
+
clarity = scores.get("clarity", 0)
|
| 235 |
+
st.metric("Clarity", f"{clarity}/10")
|
| 236 |
+
|
| 237 |
+
with col2:
|
| 238 |
+
structure = scores.get("structuredness", 0)
|
| 239 |
+
st.metric("Structure", f"{structure}/10")
|
| 240 |
+
|
| 241 |
+
with col3:
|
| 242 |
+
answerability = scores.get("answerability", 0)
|
| 243 |
+
st.metric("Answerability", f"{answerability}/10")
|
| 244 |
+
|
| 245 |
# Show keywords
|
| 246 |
keywords = result.get("keywords", [])
|
| 247 |
if keywords:
|
|
|
|
| 250 |
|
| 251 |
# Show optimized content
|
| 252 |
optimized_text = result.get("optimized_text", "")
|
| 253 |
+
# if optimized_text and not analyze_only:
|
| 254 |
st.markdown("#### ✨ Optimized Content")
|
| 255 |
st.text_area(
|
| 256 |
"Enhanced version:",
|