burman-ai commited on
Commit
db8b55b
·
verified ·
1 Parent(s): 5272ce5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -37,6 +37,11 @@ def respond(
37
 
38
  for message_chunk in client.chat.completions.create(
39
  model=model_to_use,
 
 
 
 
 
40
  messages=messages,
41
  ):
42
  token_text = message_chunk.choices[0].delta.content
@@ -61,4 +66,4 @@ demo = gr.ChatInterface(
61
 
62
  if __name__ == "__main__":
63
  print("Launching the ChatGPT-Llama...")
64
- demo.launch()
 
37
 
38
  for message_chunk in client.chat.completions.create(
39
  model=model_to_use,
40
+ max_tokens=2048,
41
+ temperature=0.7,
42
+ top_p=0.95,
43
+ frequency_penalty=0.0,
44
+ seed=None,
45
  messages=messages,
46
  ):
47
  token_text = message_chunk.choices[0].delta.content
 
66
 
67
  if __name__ == "__main__":
68
  print("Launching the ChatGPT-Llama...")
69
+ demo.launch()