mgetz commited on
Commit
b791534
·
verified ·
1 Parent(s): 887f9dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -19,8 +19,11 @@ def respond(message, history):
19
  {"role": "user",
20
  "content": message})
21
 
22
- print(response)
23
- return response = client.chat_completion(messages, max_tokens=100)
24
 
 
 
 
 
 
25
  chatbot = gr.ChatInterface(respond, type="messages")
26
  chatbot.launch
 
19
  {"role": "user",
20
  "content": message})
21
 
 
 
22
 
23
+ response = client.chat_completion(messages, max_tokens=100, temperature=1, top_p=.2)
24
+
25
+ return response['choices'][0]['message']['content'].strip()
26
+ print(response)
27
+
28
  chatbot = gr.ChatInterface(respond, type="messages")
29
  chatbot.launch