MBilal-72 commited on
Commit
b3b345f
·
verified ·
1 Parent(s): 36be032

Update app.py

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