TongkunGuan commited on
Commit
5d73243
·
verified ·
1 Parent(s): f30af6e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -171,6 +171,8 @@ with gr.Blocks(title="BPE Visualization Demo") as demo:
171
  # Update the slider range and set value to 0
172
  slider_max_val = len(current_bpe) - 1
173
  bpe_text = format_bpe_display(bpe)
 
 
174
  return image, vis, bpe_text, slider_max_val
175
 
176
  run_btn.click(
 
171
  # Update the slider range and set value to 0
172
  slider_max_val = len(current_bpe) - 1
173
  bpe_text = format_bpe_display(bpe)
174
+ print("current_vis",len(current_vis))
175
+ print("current_bpe",len(current_bpe))
176
  return image, vis, bpe_text, slider_max_val
177
 
178
  run_btn.click(