Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -230,14 +230,14 @@ class GEOSEOApp:
|
|
| 230 |
# Additional options based on optimization type
|
| 231 |
if optimization_type in ["standard", "seo", "competitive", "voice_search", "readability_analysis"]:
|
| 232 |
analyze_only = st.checkbox("Analysis only (no rewriting)", value=False)
|
| 233 |
-
|
| 234 |
# elif optimization_type == "batch_optimize":
|
| 235 |
# st.info("For batch optimization, separate multiple content pieces with '---' in the text area above")
|
| 236 |
# elif optimization_type == "content_variations":
|
| 237 |
# num_variations = st.slider("Number of variations", min_value=1, max_value=5, value=3)
|
| 238 |
else:
|
| 239 |
analyze_only = False
|
| 240 |
-
|
| 241 |
# num_variations = 3
|
| 242 |
|
| 243 |
# Show description based on optimization type
|
|
@@ -267,7 +267,7 @@ class GEOSEOApp:
|
|
| 267 |
result = self.content_optimizer.optimize_content(
|
| 268 |
input_text,
|
| 269 |
analyze_only=analyze_only,
|
| 270 |
-
include_keywords=
|
| 271 |
optimization_type="standard"
|
| 272 |
)
|
| 273 |
|
|
@@ -275,7 +275,7 @@ class GEOSEOApp:
|
|
| 275 |
result = self.content_optimizer.optimize_content(
|
| 276 |
input_text,
|
| 277 |
analyze_only=analyze_only,
|
| 278 |
-
include_keywords=
|
| 279 |
optimization_type="seo"
|
| 280 |
)
|
| 281 |
|
|
|
|
| 230 |
# Additional options based on optimization type
|
| 231 |
if optimization_type in ["standard", "seo", "competitive", "voice_search", "readability_analysis"]:
|
| 232 |
analyze_only = st.checkbox("Analysis only (no rewriting)", value=False)
|
| 233 |
+
include_keywords = st.checkbox("Include keyword suggestions", value=True)
|
| 234 |
# elif optimization_type == "batch_optimize":
|
| 235 |
# st.info("For batch optimization, separate multiple content pieces with '---' in the text area above")
|
| 236 |
# elif optimization_type == "content_variations":
|
| 237 |
# num_variations = st.slider("Number of variations", min_value=1, max_value=5, value=3)
|
| 238 |
else:
|
| 239 |
analyze_only = False
|
| 240 |
+
include_keywords = True
|
| 241 |
# num_variations = 3
|
| 242 |
|
| 243 |
# Show description based on optimization type
|
|
|
|
| 267 |
result = self.content_optimizer.optimize_content(
|
| 268 |
input_text,
|
| 269 |
analyze_only=analyze_only,
|
| 270 |
+
include_keywords=include_keywords,
|
| 271 |
optimization_type="standard"
|
| 272 |
)
|
| 273 |
|
|
|
|
| 275 |
result = self.content_optimizer.optimize_content(
|
| 276 |
input_text,
|
| 277 |
analyze_only=analyze_only,
|
| 278 |
+
include_keywords=include_keywords,
|
| 279 |
optimization_type="seo"
|
| 280 |
)
|
| 281 |
|