Spaces:
Runtime error
Runtime error
file_name = "dialogue_output.txt"
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ def main_function(rounds: int, method: str, role1: str, role2: str):
|
|
20 |
json_output = json.dumps({"dialogue": dialogue}, ensure_ascii=False, indent=4)
|
21 |
|
22 |
# 儲存對話為 JSON 文件
|
23 |
-
file_name = "dialogue_output.
|
24 |
with open(file_name, "w", encoding="utf-8") as f:
|
25 |
f.write(json_output)
|
26 |
|
|
|
20 |
json_output = json.dumps({"dialogue": dialogue}, ensure_ascii=False, indent=4)
|
21 |
|
22 |
# 儲存對話為 JSON 文件
|
23 |
+
file_name = "dialogue_output.txt"
|
24 |
with open(file_name, "w", encoding="utf-8") as f:
|
25 |
f.write(json_output)
|
26 |
|