Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -14,7 +14,7 @@ def pad_buffer(audio):
14
  def generate_voice(text, voice_name):
15
  try:
16
  audio = generate(
17
- text[:250], # Limit to 250 characters
18
  voice=voice_name,
19
  model="eleven_multilingual_v2"
20
  )
@@ -55,7 +55,7 @@ with gr.Blocks() as block:
55
  gr.Markdown(description)
56
 
57
  input_text = gr.Textbox(
58
- label="Input Text (250 characters max)",
59
  lines=2,
60
  value="Hello! 你好! Hola! नमस्ते! Bonjour! こんにちは! مرحبا! 안녕하세요! Ciao! Cześć! Привіт! Γειά σας! Здравей! வணக்கம்!",
61
  elem_id="input_text"
 
14
  def generate_voice(text, voice_name):
15
  try:
16
  audio = generate(
17
+ text[:2500000], # Limit to 2500000 characters
18
  voice=voice_name,
19
  model="eleven_multilingual_v2"
20
  )
 
55
  gr.Markdown(description)
56
 
57
  input_text = gr.Textbox(
58
+ label="Input Text (2500000 characters max)",
59
  lines=2,
60
  value="Hello! 你好! Hola! नमस्ते! Bonjour! こんにちは! مرحبا! 안녕하세요! Ciao! Cześć! Привіт! Γειά σας! Здравей! வணக்கம்!",
61
  elem_id="input_text"