commonlemon commited on
Commit
2861dbc
·
verified ·
1 Parent(s): d2582d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -18,8 +18,7 @@ def respond(message, history): #function for Gradio to call
18
  messages.append({"role": "user", "content": message}) #add the current user’s message to the messages list
19
 
20
  # chat completion API call forwarding the messages & other params to model
21
- response = client.chat_completion(messages, max_tokens=100, temperature = 2)
22
-
23
  return response.choices[0].message.content.strip()
24
 
25
  # defining chatbot
 
18
  messages.append({"role": "user", "content": message}) #add the current user’s message to the messages list
19
 
20
  # chat completion API call forwarding the messages & other params to model
21
+ response = client.chat_completion(messages, max_tokens=100, temperature = 2, top_p=0.95) #deepseek R1 recomended temp range: 0.5-0.7
 
22
  return response.choices[0].message.content.strip()
23
 
24
  # defining chatbot