Skip to content

Commit

Permalink
refactor: yet another small tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
engineervix committed Dec 13, 2023
1 parent ec8087e commit b81538c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions social.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import together
from dotenv import load_dotenv

from app.core.utilities import DATA_DIR, configure_logging, today_iso_fmt
from app.core.utilities import DATA_DIR, configure_logging, podcast_host, today_iso_fmt

logger = logging.getLogger(__name__)
load_dotenv()
Expand Down Expand Up @@ -73,7 +73,7 @@ def create_facebook_post(content: str) -> str:
https://docs.together.ai/reference/complete
"""

prompt = f"<human>: You are a social media marketing guru. You have been hired by a podcaster to create a nice, short and catchy facebook post (max 130 words) inviting people to listen to today's podcast whose transcript is below. Highlight some interesting news items, appropriately paraphrasing them to grab the attention of your audience. Also, appropriately utilize bullet points, emojis, whitespace and hashtags where necessary. Do not add the link to the podcast as it will be added automatically.\n\n```{content}\n```\n<bot>:"
prompt = f"<human>: You are a social media marketing guru. You have been hired by a podcaster, {podcast_host} to create a nice, short and catchy facebook post (max 130 words) inviting people to listen to today's podcast whose transcript is below. Highlight some interesting news headlines, appropriately paraphrasing them to grab the attention of your audience. Also, appropriately utilize bullet points, emojis, whitespace and hashtags where necessary. Do not add the link to the podcast as it will be added automatically.\n\n```{content}\n```\n<bot>:"
model = "togethercomputer/llama-2-70b-chat"
temperature = 0.7
max_tokens = 768
Expand Down

0 comments on commit b81538c

Please sign in to comment.