mylesai commited on
Commit
8242f8f
1 Parent(s): 83ae4c0

Update content_generator.py

Browse files
Files changed (1) hide show
  1. content_generator.py +5 -6
content_generator.py CHANGED
@@ -34,16 +34,15 @@ def get_website_content(row, query_engine):
34
  try:
35
  if pd.notna(row['Suggested Word/Character Count']):
36
  if row['Suggested Word/Character Count'] != 'Not applicable for SEO':
37
- if row['Prompt']:
38
- prompt = row['Prompt']
39
- else:
40
- prompt = None
41
  page = row['Page Type']
42
  instructions = row['Suggested Word/Character Count']
43
  pov = row['Point of View']
44
  element = row['Section Piece (Element)']
45
-
46
- response = query_engine.query(get_website_layout_prompt(page, instructions, pov, element, csv_prompt=prompt))
 
 
 
47
  print(response)
48
  return response.response
49
  else:
 
34
  try:
35
  if pd.notna(row['Suggested Word/Character Count']):
36
  if row['Suggested Word/Character Count'] != 'Not applicable for SEO':
 
 
 
 
37
  page = row['Page Type']
38
  instructions = row['Suggested Word/Character Count']
39
  pov = row['Point of View']
40
  element = row['Section Piece (Element)']
41
+ if pd.notna(row['Prompt']):
42
+ prompt = row['Prompt']
43
+ response = query_engine.query(get_website_layout_prompt(page, instructions, pov, element, csv_prompt=prompt))
44
+ else:
45
+ response = query_engine.query(get_website_layout_prompt(page, instructions, pov, element))
46
  print(response)
47
  return response.response
48
  else: