Commit
·
a607bbf
1
Parent(s):
e2da336
Update app.py
Browse files
app.py
CHANGED
@@ -157,7 +157,7 @@ def create_tts_fn(net_g,hps,speaker_id):
|
|
157 |
if is_gpt:
|
158 |
openai.api_key = api_key
|
159 |
text,messages = chatgpt(text)
|
160 |
-
|
161 |
if not extract:
|
162 |
print(text)
|
163 |
t1 = time.time()
|
@@ -222,7 +222,7 @@ def create_tts_fn(net_g,hps,speaker_id):
|
|
222 |
pass
|
223 |
|
224 |
file_path = "subtitles.srt"
|
225 |
-
return
|
226 |
return tts_fn
|
227 |
|
228 |
if __name__ == '__main__':
|
|
|
157 |
if is_gpt:
|
158 |
openai.api_key = api_key
|
159 |
text,messages = chatgpt(text)
|
160 |
+
htm = to_html(messages)
|
161 |
if not extract:
|
162 |
print(text)
|
163 |
t1 = time.time()
|
|
|
222 |
pass
|
223 |
|
224 |
file_path = "subtitles.srt"
|
225 |
+
return file_path,(hps.data.sampling_rate, np.concatenate(audio_fin)),file_path,htm
|
226 |
return tts_fn
|
227 |
|
228 |
if __name__ == '__main__':
|