AdrienB134 commited on
Commit
579471e
1 Parent(s): 0a1357c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -81,7 +81,7 @@ def model_inference(
81
  inputs = inputs.to("cuda")
82
 
83
  # Inference: Generation of the output
84
- generated_ids = model.generate(**inputs, max_new_tokens=128)
85
  generated_ids_trimmed = [
86
  out_ids[len(in_ids) :] for in_ids, out_ids in zip(inputs.input_ids, generated_ids)
87
  ]
 
81
  inputs = inputs.to("cuda")
82
 
83
  # Inference: Generation of the output
84
+ generated_ids = model.generate(**inputs, max_new_tokens=512)
85
  generated_ids_trimmed = [
86
  out_ids[len(in_ids) :] for in_ids, out_ids in zip(inputs.input_ids, generated_ids)
87
  ]