Update app.py
Browse files
app.py
CHANGED
@@ -22,11 +22,11 @@ def infer(input_ids):
|
|
22 |
num_beams=8,
|
23 |
length_penalty=1.0,
|
24 |
no_repeat_ngram_size=4,
|
25 |
-
|
26 |
)
|
27 |
|
28 |
return output_sequences
|
29 |
-
default_value = "
|
30 |
|
31 |
#prompts
|
32 |
st.title("Демо детоксификации на ruT5")
|
|
|
22 |
num_beams=8,
|
23 |
length_penalty=1.0,
|
24 |
no_repeat_ngram_size=4,
|
25 |
+
# do_sample=True, top_p=0.9, temperature=0.9
|
26 |
)
|
27 |
|
28 |
return output_sequences
|
29 |
+
default_value = "Еще один петух решил легко заработать на донатах."
|
30 |
|
31 |
#prompts
|
32 |
st.title("Демо детоксификации на ruT5")
|