Defts-lab commited on
Commit
50ecd05
1 Parent(s): 3712b85

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -16
app.py CHANGED
@@ -33,25 +33,14 @@ def read_readme():
33
  INSTRUCTION_TEMPLATES = {
34
  ################# PODCAST ##################
35
  "podcast": {
36
- "intro": """Your task is to take the input text provided and turn it into an lively, engaging, informative podcast dialogue, in the style of NPR. The input text may be messy or unstructured, as it could come from a variety of sources like PDFs or web pages.
37
- Don't worry about the formatting issues or any irrelevant information; your goal is to extract the key points, identify definitions, and interesting facts that could be discussed in a podcast.
38
- Define all terms used carefully for a broad audience of listeners.
39
  """,
40
- "text_instructions": "First, carefully read through the input text and identify the main topics, key points, and any interesting facts or anecdotes. Think about how you could present this information in a fun, engaging way that would be suitable for a high quality presentation.",
41
- "scratch_pad": """Brainstorm creative ways to discuss the main topics and key points you identified in the input text. Consider using analogies, examples, storytelling techniques, or hypothetical scenarios to make the content more relatable and engaging for listeners.
42
- Keep in mind that your podcast should be accessible to a general audience, so avoid using too much jargon or assuming prior knowledge of the topic. If necessary, think of ways to briefly explain any complex concepts in simple terms.
43
- Use your imagination to fill in any gaps in the input text or to come up with thought-provoking questions that could be explored in the podcast. The goal is to create an informative and entertaining dialogue, so feel free to be creative in your approach.
44
- Define all terms used clearly and spend effort to explain the background.
45
- Write your brainstorming ideas and a rough outline for the podcast dialogue here. Be sure to note the key insights and takeaways you want to reiterate at the end.
46
- Make sure to make it fun and exciting.
47
  """,
48
- "prelude": """Now that you have brainstormed ideas and created a rough outline, it's time to write the actual podcast dialogue. Aim for a natural, conversational flow between the host and any guest speakers. Incorporate the best ideas from your brainstorming session and make sure to explain any complex topics in an easy-to-understand way.
49
  """,
50
- "dialog": """Write a very long, engaging, informative podcast dialogue here, based on the key points and creative ideas you came up with during the brainstorming session. Use a conversational tone and include any necessary context or explanations to make the content accessible to a general audience.
51
- Never use made-up names for the hosts and guests, but make it an engaging and immersive experience for listeners. Do not include any bracketed placeholders like [Host] or [Guest]. Design your output to be read aloud -- it will be directly converted into audio.
52
- Make the dialogue as long and detailed as possible, while still staying on topic and maintaining an engaging flow. Aim to use your full output capacity to create the longest podcast episode you can, while still communicating the key information from the input text in an entertaining way.
53
- At the end of the dialogue, have the host and guest speakers naturally summarize the main insights and takeaways from their discussion. This should flow organically from the conversation, reiterating the key points in a casual, conversational manner. Avoid making it sound like an obvious recap - the goal is to reinforce the central ideas one last time before signing off.
54
- The podcast should have around 20000 words.
55
  """,
56
  },
57
  ################# MATERIAL DISCOVERY SUMMARY ##################
 
33
  INSTRUCTION_TEMPLATES = {
34
  ################# PODCAST ##################
35
  "podcast": {
36
+ "intro": """Your task is to convert the provided input text into a dynamic and engaging podcast dialogue, mirroring the conversational style of NPR. The input may be unstructured or messy, originating from sources like PDFs or web pages. Disregard formatting issues or irrelevant content. Focus on extracting key concepts, clarifying definitions, and highlighting intriguing facts suitable for in-depth discussion. While the audience is likely familiar with the field, ensure explanations are clear and accessible. Carefully define all terms to facilitate understanding for a broad range of listeners.
 
 
37
  """,
38
+ "text_instructions": "Begin by thoroughly reviewing the input text to identify the primary themes, essential points, and any captivating facts or anecdotes. Reflect on how to present this information in an engaging and intellectually stimulating manner appropriate for a sophisticated audience. Given that listeners are familiar with the field, you can delve into complex ideas while ensuring clarity and approachability.",
39
+ "scratch_pad": """Explore innovative approaches to discussing the main topics and key points identified in the input text. Consider employing advanced analogies, detailed examples, storytelling techniques, or hypothetical scenarios to enhance relatability and engagement. While the audience is likely familiar with the field, avoid excessive jargon or assumptions about specific prior knowledge. If complex concepts arise, craft concise explanations that maintain technical accuracy while remaining approachable. Use your expertise to bridge any gaps in the input text and formulate thought-provoking questions for exploration. The goal is to create an informative and entertaining dialogue, so embrace creativity in your approach. Clearly define all terms and provide sufficient background context. Document your brainstorming ideas and outline the podcast dialogue here, noting key insights and takeaways to emphasize at the conclusion. Strive to make it engaging and intellectually stimulating.
 
 
 
 
 
40
  """,
41
+ "prelude": """With your brainstorming complete and a rough outline in place, proceed to compose the actual podcast dialogue. Aim for a natural, conversational flow between the host and any guest speakers. Integrate the best ideas from your brainstorming session, ensuring that complex topics are explored in depth while remaining accessible. Leverage the audience's familiarity with the field to delve into nuanced discussions, but provide clear explanations to maintain approachability.
42
  """,
43
+ "dialog": """Compose an extensive, engaging, and informative podcast dialogue based on the key points and creative ideas from your brainstorming session. Utilize a conversational tone, providing necessary context and explanations to ensure the content is accessible to a sophisticated audience familiar with the field. Avoid using fabricated names for hosts and guests; instead, create an immersive experience for listeners. Do not include any bracketed placeholders like [Host] or [Guest]. Design your output to be read aloud, as it will be directly converted into audio. Maximize the length and detail of the dialogue while maintaining focus and an engaging flow. Use your full output capacity to produce the longest possible podcast episode that effectively communicates the key information from the input text in an entertaining and intellectually stimulating manner. Conclude the dialogue with the host and guest speakers naturally summarizing the main insights and takeaways from their discussion. This summary should emerge organically from the conversation, reiterating key points in a casual, conversational style. Avoid making it sound like an explicit recap—the goal is to reinforce the central ideas one last time before signing off. Aim for the podcast to be approximately 20,000 words.
 
 
 
 
44
  """,
45
  },
46
  ################# MATERIAL DISCOVERY SUMMARY ##################