Ashar11 commited on
Commit
028c81d
·
verified ·
1 Parent(s): 8193346

Update service.py

Browse files
Files changed (1) hide show
  1. service.py +1 -2
service.py CHANGED
@@ -91,7 +91,7 @@ def content_writing_task(state: ContentState) -> ContentState:
91
 
92
  service_area = "\n".join(f"- {area}" for area in state["service_area"])
93
  company_name=state["company_name"]
94
- prompts = {
95
  "home_page": f"""You are an expert web content writer specializing in **on page SEO-optimized, high-converting website copy**. Your task is to write a compelling **Home Page** for a company named **{company_name}**, which provides **{services}**. Your writing should be persuasive, well-structured, and engaging while maintaining a clear, informative and marketing tone.
96
 
97
  ### **Key Requirements:**
@@ -399,7 +399,6 @@ Write a **concise, natural-sounding About Us page** for **{company_name}**, a tr
399
 
400
 
401
  }
402
-
403
  pages = {key: llm.invoke([{"role": "system", "content": system_prompt}, {"role": "user", "content": prompt}]) for key, prompt in prompts.items()}
404
  state.update(pages)
405
  print("content_done")
 
91
 
92
  service_area = "\n".join(f"- {area}" for area in state["service_area"])
93
  company_name=state["company_name"]
94
+ prompts = {
95
  "home_page": f"""You are an expert web content writer specializing in **on page SEO-optimized, high-converting website copy**. Your task is to write a compelling **Home Page** for a company named **{company_name}**, which provides **{services}**. Your writing should be persuasive, well-structured, and engaging while maintaining a clear, informative and marketing tone.
96
 
97
  ### **Key Requirements:**
 
399
 
400
 
401
  }
 
402
  pages = {key: llm.invoke([{"role": "system", "content": system_prompt}, {"role": "user", "content": prompt}]) for key, prompt in prompts.items()}
403
  state.update(pages)
404
  print("content_done")