Spaces:
Running
Running
Update app.py
Browse files
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) >
|
181 |
# Truncate text_input to 200 characters
|
182 |
-
text_input = text_input[:
|
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")
|