OdinStef commited on
Commit
3187af8
·
1 Parent(s): 093f157

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -17,6 +17,9 @@ def CustomChatGPT(user_input):
17
  messages.append({"role": "assistant", "content": ChatGPT_reply})
18
  return ChatGPT_reply
19
 
20
- demo = gr.Interface(fn=CustomChatGPT, inputs=gr.inputs.Textbox(label="Question"), outputs=gr.outputs.Textbox(label="Answer"), title = "I am Stephane AI and my name is Cameron")
 
 
 
21
 
22
  demo.launch()
 
17
  messages.append({"role": "assistant", "content": ChatGPT_reply})
18
  return ChatGPT_reply
19
 
20
+ demo = gr.Interface(fn=CustomChatGPT,
21
+ 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"
22
+ title = "ChatGLM-6B Chatbot"
23
+ inputs=gr.inputs.Textbox(label="Question"), outputs=gr.outputs.Textbox(label="Answer"), title = "I am Stephane AI and my name is Cameron")
24
 
25
  demo.launch()