Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -120,7 +120,7 @@ def greet(product,description):
|
|
120 |
if response.choices[0].message.content != "not moderated":
|
121 |
a_list = ["Sorry, I can't proceed for generating marketing email. Your content needs to be moderated first. Thank you!"]
|
122 |
processed_audio = combine_audio_files([text_to_speech(a_list[0])])
|
123 |
-
yield (processed_audio.sample_rate,processed_audio) a_list[0]
|
124 |
else:
|
125 |
output = llm.create_chat_completion(
|
126 |
messages=[
|
|
|
120 |
if response.choices[0].message.content != "not moderated":
|
121 |
a_list = ["Sorry, I can't proceed for generating marketing email. Your content needs to be moderated first. Thank you!"]
|
122 |
processed_audio = combine_audio_files([text_to_speech(a_list[0])])
|
123 |
+
yield (processed_audio.sample_rate,processed_audio), a_list[0]
|
124 |
else:
|
125 |
output = llm.create_chat_completion(
|
126 |
messages=[
|