Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -116,7 +116,7 @@ def translate(source, source_language, target_language):
|
|
116 |
#temperature=0.3,
|
117 |
num_beams=1,
|
118 |
#use_cache=True,
|
119 |
-
logits_processor=[RepetitionPenaltyLogitsProcessor(1.0, model)]
|
120 |
# num_beams=4,
|
121 |
# early_stopping=True,
|
122 |
do_sample=False,
|
|
|
116 |
#temperature=0.3,
|
117 |
num_beams=1,
|
118 |
#use_cache=True,
|
119 |
+
logits_processor=[RepetitionPenaltyLogitsProcessor(1.0, model)],
|
120 |
# num_beams=4,
|
121 |
# early_stopping=True,
|
122 |
do_sample=False,
|