ANASAKHTAR commited on
Commit
b199f98
·
verified ·
1 Parent(s): c9d9274

Update seo_optimizer.py

Browse files
Files changed (1) hide show
  1. seo_optimizer.py +2 -2
seo_optimizer.py CHANGED
@@ -4,8 +4,8 @@ def optimize_content(content: str):
4
  """Optimize the generated content for SEO."""
5
 
6
  # Example: Simple SEO enhancements (can be customized for more complex logic)
7
- title = "SEO Optimized Title: " + content[:60] + "..."
8
- description = "SEO Optimized Description: " + content[:150] + "..."
9
  tags = re.findall(r'\b\w+\b', content.lower())[:10] # Extract the first 10 words as tags
10
 
11
  return {
 
4
  """Optimize the generated content for SEO."""
5
 
6
  # Example: Simple SEO enhancements (can be customized for more complex logic)
7
+ title = "SEO Optimized Title: " + content[:100] + "..."
8
+ description = "SEO Optimized Description: " + content[:550] + "..."
9
  tags = re.findall(r'\b\w+\b', content.lower())[:10] # Extract the first 10 words as tags
10
 
11
  return {