Gregniuki commited on
Commit
fa41239
·
1 Parent(s): 6b6a549

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -177,9 +177,9 @@ async def main(
177
  # temp_audio_file = os.path.join(temp_dir, "generated_audio.mp3")
178
 
179
  # Check if text_input is more than 200 characters
180
- if len(text_input) > 200:
181
  # Truncate text_input to 200 characters
182
- text_input = text_input[:200]
183
 
184
  # Rename the audio file based on the text input
185
  renamed_audio_file = os.path.join(temp_dir, f"{text_input}.mp3")
 
177
  # temp_audio_file = os.path.join(temp_dir, "generated_audio.mp3")
178
 
179
  # Check if text_input is more than 200 characters
180
+ if len(text_input) > 100:
181
  # Truncate text_input to 200 characters
182
+ text_input = text_input[:100]
183
 
184
  # Rename the audio file based on the text input
185
  renamed_audio_file = os.path.join(temp_dir, f"{text_input}.mp3")