ewingreen commited on
Commit
c5ec9d1
·
verified ·
1 Parent(s): f98d4f6

Increased temperature, added a theme

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -21,12 +21,13 @@ def respond(message, history):
21
  # sending the messages and other parameters to the model
22
  response = client.chat_completion(
23
  messages,
24
- max_tokens = 100
 
25
  )
26
 
27
  # extract and return the chatbot’s response
28
  return response['choices'][0]['message']['content'].strip()
29
 
30
- chatbot = gr.ChatInterface(respond, type="messages")
31
 
32
  chatbot.launch()
 
21
  # sending the messages and other parameters to the model
22
  response = client.chat_completion(
23
  messages,
24
+ max_tokens = 100,
25
+ temperature=0.9,
26
  )
27
 
28
  # extract and return the chatbot’s response
29
  return response['choices'][0]['message']['content'].strip()
30
 
31
+ chatbot = gr.ChatInterface(respond, type="messages", theme='NoCrypt/miku')
32
 
33
  chatbot.launch()