ANASAKHTAR
commited on
Update seo_optimizer.py
Browse files- 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[:
|
8 |
-
description = "SEO Optimized Description: " + content[:
|
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 {
|