AhsanRazi commited on
Commit
3c8e143
·
verified ·
1 Parent(s): 9badf97

Update company_content_generator.py

Browse files
Files changed (1) hide show
  1. company_content_generator.py +13 -0
company_content_generator.py CHANGED
@@ -4,6 +4,19 @@ from langchain_core.prompts import PromptTemplate
4
 
5
  from crawl import marketing_crawling
6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
 
8
  company_prompt_template = PromptTemplate.from_template("""
9
  # Task
 
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