KittyMona commited on
Commit
462bb37
·
verified ·
1 Parent(s): 983fe4c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -10,10 +10,10 @@ def respond(message, history):
10
  messages.append({"role": "user", "content": "message"})
11
  response = client.chat_completion(
12
  messages,
13
- max_tokens=1000 #change response length
14
  )
15
  return response['choices'][0]['message']['content'].strip()
16
 
17
  chatbot = gr.ChatInterface(respond, type="messages")
18
 
19
- chatbot.launch(debug=True)
 
10
  messages.append({"role": "user", "content": "message"})
11
  response = client.chat_completion(
12
  messages,
13
+ max_tokens=100 #change response length
14
  )
15
  return response['choices'][0]['message']['content'].strip()
16
 
17
  chatbot = gr.ChatInterface(respond, type="messages")
18
 
19
+ chatbot.launch()