Update app.py
Browse files
app.py
CHANGED
@@ -75,6 +75,10 @@ def generate_podcast_script(api_key, content, duration, num_hosts):
|
|
75 |
Do not use any special characters or markdown. Only include the monologue with proper punctuation.
|
76 |
Ensure the content flows naturally and stays relevant to the topic.
|
77 |
Limit the script length to match the requested duration of {duration}.
|
|
|
|
|
|
|
|
|
78 |
"""
|
79 |
else:
|
80 |
prompt = f"""
|
@@ -89,6 +93,10 @@ def generate_podcast_script(api_key, content, duration, num_hosts):
|
|
89 |
Do not use any special characters or markdown. Only include the alternating dialogue lines with proper punctuation.
|
90 |
Ensure the conversation flows naturally and stays relevant to the topic.
|
91 |
Limit the script length to match the requested duration of {duration}.
|
|
|
|
|
|
|
|
|
92 |
"""
|
93 |
|
94 |
response = model.generate_content(prompt)
|
|
|
75 |
Do not use any special characters or markdown. Only include the monologue with proper punctuation.
|
76 |
Ensure the content flows naturally and stays relevant to the topic.
|
77 |
Limit the script length to match the requested duration of {duration}.
|
78 |
+
Use emotion tags naturally in generative AI speech, incorporate them sparingly at key moments to enhance the dialogue's emotional context.
|
79 |
+
Place tags like <laugh> for joy, <sigh> for frustration or relief, <chuckle> for mild amusement, <cough> or <sniffle> for discomfort, <groan> for displeasure, <yawn> for tiredness, and <gasp> for surprise.
|
80 |
+
For example: "I can't believe I stayed up all night <yawn> only to find out the meeting was canceled <groan>. Oh well, at least I finished the project <chuckle>."
|
81 |
+
Remember, use tags judiciously to maintain a natural flow of conversation.
|
82 |
"""
|
83 |
else:
|
84 |
prompt = f"""
|
|
|
93 |
Do not use any special characters or markdown. Only include the alternating dialogue lines with proper punctuation.
|
94 |
Ensure the conversation flows naturally and stays relevant to the topic.
|
95 |
Limit the script length to match the requested duration of {duration}.
|
96 |
+
Use emotion tags naturally in generative AI speech, incorporate them sparingly at key moments to enhance the dialogue's emotional context.
|
97 |
+
Place tags like <laugh> for joy, <sigh> for frustration or relief, <chuckle> for mild amusement, <cough> or <sniffle> for discomfort, <groan> for displeasure, <yawn> for tiredness, and <gasp> for surprise.
|
98 |
+
For example: "I can't believe I stayed up all night <yawn> only to find out the meeting was canceled <groan>. Oh well, at least I finished the project <chuckle>."
|
99 |
+
Remember, use tags judiciously to maintain a natural flow of conversation.
|
100 |
"""
|
101 |
|
102 |
response = model.generate_content(prompt)
|