Spaces:
Sleeping
Sleeping
Update company_content_generator.py
Browse files- company_content_generator.py +0 -13
company_content_generator.py
CHANGED
|
@@ -4,19 +4,6 @@ from langchain_core.prompts import PromptTemplate
|
|
| 4 |
|
| 5 |
from crawl import marketing_crawling
|
| 6 |
|
| 7 |
-
from playwright.sync_api import sync_playwright
|
| 8 |
-
|
| 9 |
-
def install_playwright_browsers():
|
| 10 |
-
try:
|
| 11 |
-
print("Installing Playwright browsers...")
|
| 12 |
-
with sync_playwright() as p:
|
| 13 |
-
p.install()
|
| 14 |
-
print("Playwright browsers installed successfully.")
|
| 15 |
-
except Exception as e:
|
| 16 |
-
print(f"Failed to install Playwright browsers: {e}")
|
| 17 |
-
|
| 18 |
-
install_playwright_browsers()
|
| 19 |
-
|
| 20 |
|
| 21 |
company_prompt_template = PromptTemplate.from_template("""
|
| 22 |
# Task
|
|
|
|
| 4 |
|
| 5 |
from crawl import marketing_crawling
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
company_prompt_template = PromptTemplate.from_template("""
|
| 9 |
# Task
|