youngtsai commited on
Commit
4060a57
1 Parent(s): 3cf8ded

print(chatbot_dialogue)

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