Spaces:
Runtime error
Runtime error
audio_path = dialogue_to_audio(structured_dialogue, role1_gender, role2_gender)
Browse files
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 文件
|