reduce the max min length
Browse files
app.py
CHANGED
@@ -13,8 +13,8 @@ def get_answer(user_input, decoding_method, num_beams, top_k, top_p, temperature
|
|
13 |
data = {
|
14 |
"model_name": "indochat-tiny",
|
15 |
"text": user_input,
|
16 |
-
"min_length": len(user_input) +
|
17 |
-
"max_length":
|
18 |
"decoding_method": decoding_method,
|
19 |
"num_beams": num_beams,
|
20 |
"top_k": top_k,
|
|
|
13 |
data = {
|
14 |
"model_name": "indochat-tiny",
|
15 |
"text": user_input,
|
16 |
+
"min_length": len(user_input) + 20,
|
17 |
+
"max_length": 200,
|
18 |
"decoding_method": decoding_method,
|
19 |
"num_beams": num_beams,
|
20 |
"top_k": top_k,
|