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