Sephfox commited on
Commit
c91e004
·
verified ·
1 Parent(s): 4e2809e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -237,7 +237,7 @@ def generate_response(ai_emotion, input_text):
237
  response_ids = response_model.generate(
238
  inputs.input_ids,
239
  attention_mask=inputs.attention_mask,
240
- max_length=1000,
241
  num_return_sequences=1,
242
  no_repeat_ngram_size=2,
243
  do_sample=True,
 
237
  response_ids = response_model.generate(
238
  inputs.input_ids,
239
  attention_mask=inputs.attention_mask,
240
+ max_length=400,
241
  num_return_sequences=1,
242
  no_repeat_ngram_size=2,
243
  do_sample=True,