Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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:
|