fix typo
Browse files
app.py
CHANGED
|
@@ -123,11 +123,11 @@ def update_selection(selected_state: gr.SelectData):
|
|
| 123 |
|
| 124 |
|
| 125 |
def infer(prompt, input_wav_file, clean_audio, hidden_numpy_audio):
|
| 126 |
-
print"""
|
| 127 |
βββββ
|
| 128 |
NEW INFERENCE:
|
| 129 |
βββββββ
|
| 130 |
-
"""
|
| 131 |
if clean_audio is True :
|
| 132 |
print("We want to clean audio sample")
|
| 133 |
# Extract the file name without the extension
|
|
@@ -194,11 +194,11 @@ NEW INFERENCE:
|
|
| 194 |
return "output.wav", tts_video, gr.update(value=f"bark_voices/{file_name}/{contents[1]}", visible=True), gr.Group.update(visible=True), destination_path
|
| 195 |
|
| 196 |
def infer_from_c(prompt, c_name):
|
| 197 |
-
print"""
|
| 198 |
βββββ
|
| 199 |
NEW INFERENCE:
|
| 200 |
βββββββ
|
| 201 |
-
"""
|
| 202 |
print(f"USING VOICE LIBRARY: {c_name}")
|
| 203 |
# Split the text into sentences based on common punctuation marks
|
| 204 |
sentences = re.split(r'(?<=[.!?])\s+', prompt)
|
|
|
|
| 123 |
|
| 124 |
|
| 125 |
def infer(prompt, input_wav_file, clean_audio, hidden_numpy_audio):
|
| 126 |
+
print("""
|
| 127 |
βββββ
|
| 128 |
NEW INFERENCE:
|
| 129 |
βββββββ
|
| 130 |
+
""")
|
| 131 |
if clean_audio is True :
|
| 132 |
print("We want to clean audio sample")
|
| 133 |
# Extract the file name without the extension
|
|
|
|
| 194 |
return "output.wav", tts_video, gr.update(value=f"bark_voices/{file_name}/{contents[1]}", visible=True), gr.Group.update(visible=True), destination_path
|
| 195 |
|
| 196 |
def infer_from_c(prompt, c_name):
|
| 197 |
+
print("""
|
| 198 |
βββββ
|
| 199 |
NEW INFERENCE:
|
| 200 |
βββββββ
|
| 201 |
+
""")
|
| 202 |
print(f"USING VOICE LIBRARY: {c_name}")
|
| 203 |
# Split the text into sentences based on common punctuation marks
|
| 204 |
sentences = re.split(r'(?<=[.!?])\s+', prompt)
|