youngtsai commited on
Commit
89c580c
1 Parent(s): a2e3e4d

audio_path = dialogue_to_audio(structured_dialogue, role1_gender, role2_gender)

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -106,7 +106,7 @@ def main_function(password: str, theme: str, language: str, method: str, rounds:
106
 
107
  chatbot_dialogue.append((role1_content, role2_content))
108
 
109
- audio_path = dialogue_to_audio(structured_dialogue)
110
  json_output = json.dumps({"dialogue": structured_dialogue}, ensure_ascii=False, indent=4)
111
 
112
  # 儲存對話為 JSON 文件
 
106
 
107
  chatbot_dialogue.append((role1_content, role2_content))
108
 
109
+ audio_path = dialogue_to_audio(structured_dialogue, role1_gender, role2_gender)
110
  json_output = json.dumps({"dialogue": structured_dialogue}, ensure_ascii=False, indent=4)
111
 
112
  # 儲存對話為 JSON 文件