Locutusque commited on
Commit
9313fdb
·
verified ·
1 Parent(s): bc43e30

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -20,6 +20,8 @@ def generate(
20
  pipe = load_model(model_name)
21
 
22
  # Set tokenize correctly. Otherwise ticking the box breaks it.
 
 
23
  if model_name == "M4-ai/tau-1.8B":
24
  prompt = user_input
25
  else:
 
20
  pipe = load_model(model_name)
21
 
22
  # Set tokenize correctly. Otherwise ticking the box breaks it.
23
+ if repetition_penalty == 0:
24
+ repetition_penalty = 1
25
  if model_name == "M4-ai/tau-1.8B":
26
  prompt = user_input
27
  else: