Spaces:
Sleeping
Sleeping
Update post_generator.py
Browse files- 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['
|
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
|