m-ric HF staff commited on
Commit
1447899
β€’
1 Parent(s): 89b8c0b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -375,7 +375,7 @@ def get_beam_search_html(input_text, number_steps, number_beams, length_penalty)
375
  markdown = "Output sequences:"
376
  decoded_sequences = tokenizer.batch_decode(outputs.sequences)
377
  for i, sequence in enumerate(decoded_sequences):
378
- markdown += f"\n- {sequence.replace('<s> ', '')} (score {outputs.sequences_scores[i]:.2f})"
379
 
380
  original_tree = generate_beams(
381
  input_text,
 
375
  markdown = "Output sequences:"
376
  decoded_sequences = tokenizer.batch_decode(outputs.sequences)
377
  for i, sequence in enumerate(decoded_sequences):
378
+ markdown += f"\n- {clean(sequence.replace('<s> ', ''))} (score {outputs.sequences_scores[i]:.2f})"
379
 
380
  original_tree = generate_beams(
381
  input_text,