cahya commited on
Commit
9afde5f
1 Parent(s): b1c4844

reduce the max min length

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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) + 50,
17
- "max_length": 300,
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,