wangrongsheng commited on
Commit
4d3cd06
·
1 Parent(s): d17516a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -14,9 +14,9 @@ def chat(query, history=[]):
14
  _, history = model.chat(tokenizer, query, history, max_length=512)
15
  return history, history
16
 
17
- description = "This is an unofficial chatbot application based on open source model ChatGLM-6B(https://github.com/THUDM/ChatGLM-6B), running on cpu(therefore max_length is limited to 512). \nIf you want to use this chat bot in your space, 'Duplicate this space' by click the button close to 'Linked Models'. \n"
18
  title = "ChatGLM-6B Chatbot"
19
- examples = [["Hello?"], ["你好。"], ["介绍清华"]]
20
 
21
  chatbot_interface = gr.Interface(
22
  fn=chat,
 
14
  _, history = model.chat(tokenizer, query, history, max_length=512)
15
  return history, history
16
 
17
+ description = "ChatGLM-6B 是一个开源的、支持中英双语问答的对话语言模型,基于 General Language Model (GLM) 架构,具有 62 亿参数。 \n"
18
  title = "ChatGLM-6B Chatbot"
19
+ examples = [["Hello"], ["你好"], ["介绍清华"]]
20
 
21
  chatbot_interface = gr.Interface(
22
  fn=chat,