Spaces:
Runtime error
Runtime error
print(chatbot_dialogue)
Browse files
app.py
CHANGED
@@ -12,6 +12,7 @@ def generate_dialogue(rounds, method, role1, role2):
|
|
12 |
def main_function(rounds: int, method: str, role1: str, role2: str):
|
13 |
structured_dialogue = generate_dialogue(rounds, method, role1, role2)
|
14 |
chatbot_dialogue = [(item["role"], item["content"]) for item in structured_dialogue]
|
|
|
15 |
audio_path = dialogue_to_audio(structured_dialogue)
|
16 |
json_output = json.dumps({"dialogue": structured_dialogue}, ensure_ascii=False, indent=4)
|
17 |
|
|
|
12 |
def main_function(rounds: int, method: str, role1: str, role2: str):
|
13 |
structured_dialogue = generate_dialogue(rounds, method, role1, role2)
|
14 |
chatbot_dialogue = [(item["role"], item["content"]) for item in structured_dialogue]
|
15 |
+
print(chatbot_dialogue)
|
16 |
audio_path = dialogue_to_audio(structured_dialogue)
|
17 |
json_output = json.dumps({"dialogue": structured_dialogue}, ensure_ascii=False, indent=4)
|
18 |
|