Mahiruoshi
commited on
Commit
•
1a8c404
1
Parent(s):
a607bbf
Update app.py
Browse files
app.py
CHANGED
@@ -157,7 +157,9 @@ 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()
|
|
|
157 |
if is_gpt:
|
158 |
openai.api_key = api_key
|
159 |
text,messages = chatgpt(text)
|
160 |
+
htm = to_html(messages)
|
161 |
+
else:
|
162 |
+
htm = ''
|
163 |
if not extract:
|
164 |
print(text)
|
165 |
t1 = time.time()
|