silk-road commited on
Commit
b033db1
1 Parent(s): 3220a82

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -160,7 +160,7 @@ def get_role_list( novel ):
160
  new_value = new_list[0]
161
  return gr.update(choices = new_list, value = new_value)
162
 
163
- save_log = "/content/output.txt"
164
 
165
  def get_chatbot( novel, role ):
166
  if (novel, role) not in role_tuple2chatbot:
@@ -242,8 +242,8 @@ async def submit_chat( novel, role, user_name, user_text, chat_history, persona_
242
 
243
  print(json.dumps(print_data, ensure_ascii=False))
244
 
245
- with open(save_log, "a",encoding = "utf-8") as f:
246
- f.write(json.dumps(print_data, ensure_ascii=False) + "\n")
247
 
248
  return chat_history
249
 
@@ -290,7 +290,7 @@ with gr.Blocks() as demo:
290
 
291
  增加了随机聊天,支持GLM,openai切换
292
 
293
- 米唯实接入了qwen1.8B并布置于huggingface上""")
294
 
295
  with gr.Tab("聊天"):
296
  with gr.Row():
 
160
  new_value = new_list[0]
161
  return gr.update(choices = new_list, value = new_value)
162
 
163
+ # save_log = "/content/output.txt"
164
 
165
  def get_chatbot( novel, role ):
166
  if (novel, role) not in role_tuple2chatbot:
 
242
 
243
  print(json.dumps(print_data, ensure_ascii=False))
244
 
245
+ # with open(save_log, "a",encoding = "utf-8") as f:
246
+ # f.write(json.dumps(print_data, ensure_ascii=False) + "\n")
247
 
248
  return chat_history
249
 
 
290
 
291
  增加了随机聊天,支持GLM,openai切换
292
 
293
+ 米唯实接入了Spark,文心一言并布置于huggingface上""")
294
 
295
  with gr.Tab("聊天"):
296
  with gr.Row():