theodotus commited on
Commit
1db0c3f
·
1 Parent(s): 63d07e5

Fixed repetitive output

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -34,11 +34,12 @@ def convert_history(message, history):
34
 
35
  def ask(message, history):
36
  chat_history = convert_history(message, history)
37
- chunks = llm.create_chat_completion(
38
- messages = chat_history,
39
- temperature = 0,
 
40
  stream = True,
41
- repeat_penalty = 1.2,
42
  max_tokens = 128,
43
  )
44
 
 
34
 
35
  def ask(message, history):
36
  chat_history = convert_history(message, history)
37
+ chunks = llm(
38
+ chat_history,
39
+ temperature = 0.2,
40
+ top_p=0.9,
41
  stream = True,
42
+ repeat_penalty = 1.05,
43
  max_tokens = 128,
44
  )
45