bryanpinheiro commited on
Commit
ac63131
·
verified ·
1 Parent(s): 8d5e154

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -42,8 +42,8 @@ def respond(message, chat_history):
42
  # Generate response
43
  generation_args = {
44
  "max_new_tokens": 200, # Reduced for CPU performance
45
- "temperature": 0.0,
46
- "do_sample": False,
47
  }
48
 
49
  output = pipe(formatted_input, **generation_args)
 
42
  # Generate response
43
  generation_args = {
44
  "max_new_tokens": 200, # Reduced for CPU performance
45
+ "temperature": 0.7,
46
+ "do_sample": True,
47
  }
48
 
49
  output = pipe(formatted_input, **generation_args)