Alidr79 commited on
Commit
8607889
·
verified ·
1 Parent(s): aa299db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -115,7 +115,7 @@ def tts_fn(slider_value, input_text):
115
 
116
  def master_fn(slider_value, input_text):
117
  if "." not in input_text:
118
- sampling_rate_response, audio_chunk_response = tts_fn(slider_value, input_text)
119
  return sampling_rate_response, audio_response
120
 
121
  else :
@@ -125,7 +125,7 @@ def master_fn(slider_value, input_text):
125
  all_speech.append(audio_chunk_response)
126
 
127
  audio_response = np.concatenate(all_speech)
128
- return sampling_rate_response, audio_response
129
 
130
  import gradio as gr
131
 
 
115
 
116
  def master_fn(slider_value, input_text):
117
  if "." not in input_text:
118
+ sampling_rate_response, audio_response = tts_fn(slider_value, input_text)
119
  return sampling_rate_response, audio_response
120
 
121
  else :
 
125
  all_speech.append(audio_chunk_response)
126
 
127
  audio_response = np.concatenate(all_speech)
128
+ return sampling_rate_response, audio_response
129
 
130
  import gradio as gr
131