Leilaaaah commited on
Commit
660b77e
·
verified ·
1 Parent(s): 8ced556

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -12,12 +12,12 @@ def respond(message,history):
12
 
13
  response = client.chat_completion(
14
  messages,
15
- max_tokens=100
16
  temperature=0.2
17
  )
18
 
19
  return response['choices'][0]['message']['content'].strip()
20
 
21
- chatbot = gr.ChatInterface(eightball, type='messages')
22
 
23
  chatbot.launch()
 
12
 
13
  response = client.chat_completion(
14
  messages,
15
+ max_tokens=100,
16
  temperature=0.2
17
  )
18
 
19
  return response['choices'][0]['message']['content'].strip()
20
 
21
+ chatbot = gr.ChatInterface(respond, type='messages')
22
 
23
  chatbot.launch()