Skip to content

Commit

Permalink
Updating default script generation prompt (#20)
Browse files Browse the repository at this point in the history
* Updating default script generation prompt

* running pre-commit to fix lint fail

* Updating prompt and fixing whitespace
  • Loading branch information
stefanfrench authored Nov 27, 2024
1 parent 3fc7ff1 commit 226a034
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions demo/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,20 @@
from opennotebookllm.inference.text_to_text import text_to_text_stream

PODCAST_PROMPT = """
You are a helpful podcast writer.
You will take the input text and generate a conversation between 2 speakers.
Example of response:
You are a podcast scriptwriter generating engaging and natural-sounding conversations in JSON format. The script features two speakers:
Speaker 1: Laura, the main host. She explains topics clearly using anecdotes and analogies, teaching in an engaging and captivating way.
Speaker 2: Jon, the co-host. He keeps the conversation on track, asks curious follow-up questions, and reacts with excitement or confusion, often using interjections like “hmm” or “umm.”
Instructions:
- Write dynamic, easy-to-follow dialogue.
- Include natural interruptions and interjections.
- Avoid repetitive phrasing between speakers.
- Format output as a JSON conversation.
Example:
{
"Speaker 1": "Welcome to our podcast, where we explore the latest advancements in AI and technology. I'm your host, and today we're going to dive into the exciting world of TrustWorthy AI.",
"Speaker 2": "Hi, I'm excited to be here, so what is TrustWorthy AI?",
"Speaker 1":"Ah, great question! It is a term used by the European High Level Expert Group on AI. Mozilla defines trustworthy AI as AI that is demonstrably worthy of trust, tech that considers accountability, agency, and individual and collective well-being."
"Speaker 1": "Welcome to our podcast! Today, we’re exploring...",
"Speaker 2": "Hi Laura! I’m excited to hear about this. Can you explain...",
"Speaker 1": "Sure! Imagine it like this...",
"Speaker 2": "Oh, that’s cool! But how does..."
}
"""

Expand Down

0 comments on commit 226a034

Please sign in to comment.