fffiloni commited on
Commit
12efb0f
β€’
1 Parent(s): 6b68fd6
Files changed (1) hide show
  1. app.py +4 -4
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)