Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -33,25 +33,14 @@ def read_readme():
|
|
33 |
INSTRUCTION_TEMPLATES = {
|
34 |
################# PODCAST ##################
|
35 |
"podcast": {
|
36 |
-
"intro": """Your task is to
|
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": "
|
41 |
-
"scratch_pad": """
|
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": """
|
49 |
""",
|
50 |
-
"dialog": """
|
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 ##################
|