Deaksh commited on
Commit
fc37a0d
·
verified ·
1 Parent(s): 1f14a5f

Update post_generator.py

Browse files
Files changed (1) hide show
  1. post_generator.py +1 -1
post_generator.py CHANGED
@@ -41,7 +41,7 @@ def get_prompt(few_shot_instance, length, language, tag):
41
  prompt += "4) Use the writing style as per the following examples."
42
 
43
  for i, post in enumerate(examples):
44
- post_text = post['text_blocks']
45
  prompt += f'\n\n Example {i+1}: \n\n {post_text}'
46
 
47
  if i == 1: # Use max two samples
 
41
  prompt += "4) Use the writing style as per the following examples."
42
 
43
  for i, post in enumerate(examples):
44
+ post_text = post['text']
45
  prompt += f'\n\n Example {i+1}: \n\n {post_text}'
46
 
47
  if i == 1: # Use max two samples