kcarnold commited on
Commit
43804be
·
1 Parent(s): 05627f1

add a border to spans

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -365,7 +365,7 @@ def logprobs_component(logprobs):
365
  token_to_show = html.escape(show_token(token, escape_markdown=False))
366
  else:
367
  token_to_show = html.escape("<empty>")
368
- html_out += f'<span onclick="showLogprobs({i})" title="Click to show logprobs for this token">{token_to_show}</span>'
369
  show_logprob_js = '''
370
  function showLogprobs(i) {
371
  const logprobs = allLogprobs[i].logprobs;
 
365
  token_to_show = html.escape(show_token(token, escape_markdown=False))
366
  else:
367
  token_to_show = html.escape("<empty>")
368
+ html_out += f'<span style="border: 1px solid black;" onclick="showLogprobs({i})" title="Click to show logprobs for this token">{token_to_show}</span>'
369
  show_logprob_js = '''
370
  function showLogprobs(i) {
371
  const logprobs = allLogprobs[i].logprobs;