bluenevus commited on
Commit
f6f6914
·
verified ·
1 Parent(s): 5998ef1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -23,11 +23,11 @@ def generate_podcast_script(api_key, content, duration):
23
  {content}
24
 
25
  The podcast should last approximately {duration}. Include natural speech patterns,
26
- humor, and occasional off-topic chit-chat. Use speech fillers like um, ah,
27
  yes, I see, Ok now. Vary the emotional tone.
28
  Format the script as alternating lines of dialogue without speaker labels.
29
  Separate each line with a blank line.
30
- Do not use any special characters, markdown, or formatting. Only include the alternating dialogue lines.
31
  Ensure the conversation flows naturally and stays relevant to the topic.
32
  Limit the script length to match the requested duration of {duration}.
33
  """
@@ -140,7 +140,7 @@ with gr.Blocks() as demo:
140
  voice1_select = gr.Dropdown(label="Select Voice 1", choices=voice_dict.get('en-US', []), value=default_voice1)
141
 
142
  with gr.Row():
143
- lang2_select = gr.Dropdown(label="Select Language 2", choices=[f"{language_names.get(lang, lang)}" for lang in languages], value="None")
144
  voice2_select = gr.Dropdown(label="Select Voice 2", choices=voice_dict.get('en-US', []), value=default_voice2)
145
 
146
  generate_btn = gr.Button("Generate Script")
 
23
  {content}
24
 
25
  The podcast should last approximately {duration}. Include natural speech patterns,
26
+ humor, and occasional off-topic chit-chat. Use occasional speech fillers like um, ah,
27
  yes, I see, Ok now. Vary the emotional tone.
28
  Format the script as alternating lines of dialogue without speaker labels.
29
  Separate each line with a blank line.
30
+ Do not use any special characters or markdown. Only include the alternating dialogue lines with proper punctuation.
31
  Ensure the conversation flows naturally and stays relevant to the topic.
32
  Limit the script length to match the requested duration of {duration}.
33
  """
 
140
  voice1_select = gr.Dropdown(label="Select Voice 1", choices=voice_dict.get('en-US', []), value=default_voice1)
141
 
142
  with gr.Row():
143
+ lang2_select = gr.Dropdown(label="Select Language 2", choices=[f"{language_names.get(lang, lang)}" for lang in languages], alue="English (United States)")
144
  voice2_select = gr.Dropdown(label="Select Voice 2", choices=voice_dict.get('en-US', []), value=default_voice2)
145
 
146
  generate_btn = gr.Button("Generate Script")