amir22010 commited on
Commit
1e6c19e
·
verified ·
1 Parent(s): f0dd428

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=[