s-a-malik commited on
Commit
cdf250a
·
1 Parent(s): 2c726a9
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -336,8 +336,8 @@ def generate(
336
  # print(probe_pred.shape, probe_pred)
337
  # decode one token at a time
338
  output_id = outputs.sequences[0, input_ids.shape[1]+i]
339
- print(output_id, output_word, probe_pred)
340
  output_word = tokenizer.decode(output_id)
 
341
  new_highlighted_text = highlight_text(output_word, probe_pred)
342
  highlighted_text += new_highlighted_text
343
 
 
336
  # print(probe_pred.shape, probe_pred)
337
  # decode one token at a time
338
  output_id = outputs.sequences[0, input_ids.shape[1]+i]
 
339
  output_word = tokenizer.decode(output_id)
340
+ print(output_id, output_word, probe_pred)
341
  new_highlighted_text = highlight_text(output_word, probe_pred)
342
  highlighted_text += new_highlighted_text
343