Spaces:
Sleeping
Sleeping
Unityraptor
commited on
Commit
•
f9ebbce
1
Parent(s):
9621ba1
Update app.py
Browse files
app.py
CHANGED
@@ -14,11 +14,11 @@ translator = pipeline("translation_en_to_fr", model="google-t5/t5-large")
|
|
14 |
|
15 |
def paraphrase(
|
16 |
question,
|
17 |
-
num_beams=
|
18 |
-
num_beam_groups=
|
19 |
num_return_sequences=1,
|
20 |
repetition_penalty=10.0,
|
21 |
-
diversity_penalty=
|
22 |
no_repeat_ngram_size=2,
|
23 |
temperature=0.7,
|
24 |
max_length=1024
|
|
|
14 |
|
15 |
def paraphrase(
|
16 |
question,
|
17 |
+
num_beams=1,
|
18 |
+
num_beam_groups=1,
|
19 |
num_return_sequences=1,
|
20 |
repetition_penalty=10.0,
|
21 |
+
diversity_penalty=8.0,
|
22 |
no_repeat_ngram_size=2,
|
23 |
temperature=0.7,
|
24 |
max_length=1024
|