Spaces:
Running
on
T4
Running
on
T4
georg-suno
commited on
Commit
•
6e4b515
1
Parent(s):
b64cb0e
mini bug
Browse files
app.py
CHANGED
@@ -108,12 +108,12 @@ examples = [
|
|
108 |
]
|
109 |
|
110 |
|
111 |
-
def gen_tts(text, history_prompt
|
112 |
history_prompt = PROMPT_LOOKUP[history_prompt]
|
113 |
if DEBUG_MODE:
|
114 |
audio_arr = np.zeros(SAMPLE_RATE)
|
115 |
else:
|
116 |
-
audio_arr = generate_audio(text, history_prompt=history_prompt
|
117 |
audio_arr = (audio_arr * 32767).astype(np.int16)
|
118 |
return (SAMPLE_RATE, audio_arr)
|
119 |
|
|
|
108 |
]
|
109 |
|
110 |
|
111 |
+
def gen_tts(text, history_prompt):#, temp_semantic, temp_waveform):
|
112 |
history_prompt = PROMPT_LOOKUP[history_prompt]
|
113 |
if DEBUG_MODE:
|
114 |
audio_arr = np.zeros(SAMPLE_RATE)
|
115 |
else:
|
116 |
+
audio_arr = generate_audio(text, history_prompt=history_prompt)#, text_temp=temp_semantic, waveform_temp=temp_waveform)
|
117 |
audio_arr = (audio_arr * 32767).astype(np.int16)
|
118 |
return (SAMPLE_RATE, audio_arr)
|
119 |
|