Spaces:
Runtime error
Runtime error
def create_chat_dialogue(rounds, role1, role2, theme, language):
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ def extract_json_from_response(response_text):
|
|
50 |
raise ValueError("JSON dialogue not found in the response.")
|
51 |
|
52 |
|
53 |
-
def create_chat_dialogue(rounds, role1, role2, theme
|
54 |
openai.api_key = os.environ["OPEN_AI_KEY"]
|
55 |
|
56 |
# 初始化對話
|
|
|
50 |
raise ValueError("JSON dialogue not found in the response.")
|
51 |
|
52 |
|
53 |
+
def create_chat_dialogue(rounds, role1, role2, theme, language):
|
54 |
openai.api_key = os.environ["OPEN_AI_KEY"]
|
55 |
|
56 |
# 初始化對話
|