bluenevus commited on
Commit
4f90edf
·
verified ·
1 Parent(s): 2ac64ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -5
app.py CHANGED
@@ -56,12 +56,20 @@ def generate_podcast_script(api_key, prompt, uploaded_file, duration, num_hosts)
56
  Format: {'Monologue' if num_hosts == 1 else 'Alternating dialogue'} without speaker labels.
57
  Separate {'paragraphs' if num_hosts == 1 else 'lines'} with blank lines.
58
  only provide the dialog for text to speech
59
-
60
- Use emotion tags in angle brackets: <laugh>, <sigh>, <chuckle>, <cough>, <sniffle>, <groan>, <yawn>, <gasp>.
61
-
62
- Example: "I can't believe I stayed up all night <yawn> only to find out the meeting was canceled <groan>."
63
-
64
  Ensure content flows naturally and stays on topic. Match the script length to {duration} minutes.
 
 
 
 
 
 
 
 
 
 
 
65
  {'Make sure the script is a monologue for one person.' if num_hosts == 1 else 'Ensure the dialogue alternates between two distinct voices, with one speaking on odd-numbered lines and the other on even-numbered lines.'}
66
  """
67
 
 
56
  Format: {'Monologue' if num_hosts == 1 else 'Alternating dialogue'} without speaker labels.
57
  Separate {'paragraphs' if num_hosts == 1 else 'lines'} with blank lines.
58
  only provide the dialog for text to speech
59
+ Only use these emotion tags in angle brackets: <laugh>, <sigh>, <chuckle>, <cough>, <sniffle>, <groan>, <yawn>, <gasp>.
60
+ -Example: "I can't believe I stayed up all night <yawn> only to find out the meeting was canceled <groan>."
 
 
 
61
  Ensure content flows naturally and stays on topic. Match the script length to {duration} minutes.
62
+ Do not include speaker labels like "John:" or "Sara:" before dialogue.
63
+ The intro always includes the first speaker and should be in the same paragraph.
64
+ The outro always includes the first speaker and should be in the same paragraph
65
+ Keep each speaker's entire monologue in a single paragraph, regardless of length if the humber of hosts is not 1.
66
+ Start a new paragraph only when switching to a different speaker if the humber of hosts is not 1.
67
+ Maintain natural conversation flow and speech patterns within each monologue.
68
+ Use context clues or subtle references to indicate who is speaking without explicit labels if the humber of hosts is not 1
69
+ Ensure clear transitions between speakers to maintain coherence without labels.
70
+ Use speaker names sparingly, only when necessary for clarity or emphasis. Avoid starting every line with the other person's name.
71
+ Rely more on context and speech patterns to indicate who is speaking, rather than always stating names.
72
+ Use names primarily for transitions sparingly, definitely with agreements, or to draw attention to a specific point, not as a constant form of address.
73
  {'Make sure the script is a monologue for one person.' if num_hosts == 1 else 'Ensure the dialogue alternates between two distinct voices, with one speaking on odd-numbered lines and the other on even-numbered lines.'}
74
  """
75