Commit
·
c956252
1
Parent(s):
8a5e007
update
Browse files- app.py +0 -3
- event_handlers.py +1 -2
app.py
CHANGED
|
@@ -3,9 +3,6 @@ from config import *
|
|
| 3 |
from event_handlers import *
|
| 4 |
|
| 5 |
|
| 6 |
-
import nltk
|
| 7 |
-
|
| 8 |
-
nltk.download("punkt", download_dir="/home/user/nltk_data")
|
| 9 |
|
| 10 |
# --- Gradio UI Definition ---
|
| 11 |
# theme = gr.themes.Default(primary_hue=gr.themes.colors.blue).set()
|
|
|
|
| 3 |
from event_handlers import *
|
| 4 |
|
| 5 |
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
# --- Gradio UI Definition ---
|
| 8 |
# theme = gr.themes.Default(primary_hue=gr.themes.colors.blue).set()
|
event_handlers.py
CHANGED
|
@@ -13,7 +13,6 @@ import pandas as pd
|
|
| 13 |
import gc
|
| 14 |
|
| 15 |
|
| 16 |
-
from nltk.tokenize import sent_tokenize
|
| 17 |
|
| 18 |
from core.data_model import AudioFile
|
| 19 |
from core.bark.voice_clone import create_bark_prompt
|
|
@@ -365,7 +364,7 @@ def generate_batch_audio(
|
|
| 365 |
)
|
| 366 |
|
| 367 |
# split the text into sentences
|
| 368 |
-
sentences =
|
| 369 |
|
| 370 |
gr.Info("Generating Audio....", duration=120)
|
| 371 |
waves = generate_audio(
|
|
|
|
| 13 |
import gc
|
| 14 |
|
| 15 |
|
|
|
|
| 16 |
|
| 17 |
from core.data_model import AudioFile
|
| 18 |
from core.bark.voice_clone import create_bark_prompt
|
|
|
|
| 364 |
)
|
| 365 |
|
| 366 |
# split the text into sentences
|
| 367 |
+
sentences = text.split(".")
|
| 368 |
|
| 369 |
gr.Info("Generating Audio....", duration=120)
|
| 370 |
waves = generate_audio(
|