mayedatariq commited on
Commit
4d5bf3b
·
verified ·
1 Parent(s): 191214c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -25,14 +25,14 @@ def respond(message, history):
25
 
26
  for chunk in client.chat_completion(
27
  messages,
28
- max_tokens=256,
29
- temperature=0.7,
30
- top_p=0.9,
31
- stream=True,
32
  ):
33
  token = chunk.choices[0].delta.content
34
  response += token
35
  yield response
36
 
37
  chatbot = gr.ChatInterface(respond)
38
- chatbot.launch(debug=True)
 
25
 
26
  for chunk in client.chat_completion(
27
  messages,
28
+ max_tokens = 256,
29
+ temperature = 0.7,
30
+ top_p = 0.9,
31
+ stream = True,
32
  ):
33
  token = chunk.choices[0].delta.content
34
  response += token
35
  yield response
36
 
37
  chatbot = gr.ChatInterface(respond)
38
+ chatbot.launch(debug = True)