Update app.py
Browse files
app.py
CHANGED
|
@@ -157,7 +157,7 @@ def get_role_list( novel ):
|
|
| 157 |
new_value = new_list[0]
|
| 158 |
return gr.update(choices = new_list, value = new_value)
|
| 159 |
|
| 160 |
-
save_log = "/content/output.txt"
|
| 161 |
|
| 162 |
def get_chatbot( novel, role ):
|
| 163 |
if (novel, role) not in role_tuple2chatbot:
|
|
@@ -236,8 +236,8 @@ async def submit_chat( novel, role, user_name, user_text, chat_history, persona_
|
|
| 236 |
|
| 237 |
print(json.dumps(print_data, ensure_ascii=False))
|
| 238 |
|
| 239 |
-
with open(save_log, "a",encoding = "utf-8") as f:
|
| 240 |
-
|
| 241 |
|
| 242 |
return chat_history
|
| 243 |
|
|
|
|
| 157 |
new_value = new_list[0]
|
| 158 |
return gr.update(choices = new_list, value = new_value)
|
| 159 |
|
| 160 |
+
# save_log = "/content/output.txt"
|
| 161 |
|
| 162 |
def get_chatbot( novel, role ):
|
| 163 |
if (novel, role) not in role_tuple2chatbot:
|
|
|
|
| 236 |
|
| 237 |
print(json.dumps(print_data, ensure_ascii=False))
|
| 238 |
|
| 239 |
+
# with open(save_log, "a",encoding = "utf-8") as f:
|
| 240 |
+
# f.write(json.dumps(print_data, ensure_ascii=False) + "\n")
|
| 241 |
|
| 242 |
return chat_history
|
| 243 |
|