m-ric HF staff commited on
Commit
50a978d
β€’
1 Parent(s): efa8da2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -375,7 +375,9 @@ 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} ( 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- {sequence} (score {outputs.sequences_scores[i]:.2f})"
379
+ print("Markdown output")
380
+ print(markdown)
381
 
382
  original_tree = generate_beams(
383
  input_text,