Spaces:
Runtime error
Runtime error
dialogue = create_chat_dialogue(rounds, role1, role2, theme, language)
Browse files
app.py
CHANGED
@@ -86,7 +86,7 @@ def create_chat_dialogue(rounds, role1, role2, theme, language):
|
|
86 |
|
87 |
def generate_dialogue(rounds, method, role1, role2, theme, language):
|
88 |
if method == "auto":
|
89 |
-
dialogue = create_chat_dialogue(rounds, role1, role2, theme)
|
90 |
else:
|
91 |
dialogue = [{"role": role1, "content": "手動輸入文本 1"}, {"role": role2, "content": "手動輸入文本 2"}]
|
92 |
return dialogue
|
|
|
86 |
|
87 |
def generate_dialogue(rounds, method, role1, role2, theme, language):
|
88 |
if method == "auto":
|
89 |
+
dialogue = create_chat_dialogue(rounds, role1, role2, theme, language)
|
90 |
else:
|
91 |
dialogue = [{"role": role1, "content": "手動輸入文本 1"}, {"role": role2, "content": "手動輸入文本 2"}]
|
92 |
return dialogue
|