OdinStef commited on
Commit
d38e6ee
·
1 Parent(s): 1920f81

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -19,11 +19,7 @@ def CustomChatGPT(user_input):
19
 
20
  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"
21
  title = "I am Stephane AI and my name is Cameron"
22
- examples = [["Hello?"], ["你好。"], ["介绍清华"]]
23
- demo = gr.Interface(fn=CustomChatGPT,
24
- description = description,
25
- title = title,
26
- examples=examples,
27
- inputs=gr.inputs.Textbox(label="Question"), outputs=gr.outputs.Textbox(label="Answer"))
28
 
29
  demo.launch()
 
19
 
20
  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"
21
  title = "I am Stephane AI and my name is Cameron"
22
+
23
+ demo = gr.Interface(fn=CustomChatGPT, description = description, title = title, inputs = gr.inputs.Textbox(label = "Question"), outputs = gr.outputs.Textbox(label = "Answer"))
 
 
 
 
24
 
25
  demo.launch()