Tram-Anh commited on
Commit
086dca9
·
verified ·
1 Parent(s): e7d6505

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -28,13 +28,13 @@ def respond(message, history):
28
  )
29
 
30
  response = client.chat_completion(
31
- messages, max_tokens = 100
32
  )
33
 
34
  return response['choices'][0]['message']['content'].strip()
35
 
36
 
37
- chatbot = gr.ChatInterface(respond, type="messages", temperature=1.3, top_p = 0.5)
38
  #temperature and top_p controls randomness
39
 
40
  chatbot.launch()
 
28
  )
29
 
30
  response = client.chat_completion(
31
+ messages, max_tokens = 100,temperature=1.3, top_p = 0.5
32
  )
33
 
34
  return response['choices'][0]['message']['content'].strip()
35
 
36
 
37
+ chatbot = gr.ChatInterface(respond, type="messages")
38
  #temperature and top_p controls randomness
39
 
40
  chatbot.launch()