m-ric HF staff commited on
Commit
47b44cb
1 Parent(s): 015e59f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -96,7 +96,7 @@ def compute_all(input_type, prompt_text, completion_text, prompt_tokens, complet
96
 
97
  def apply_color(val):
98
  color = cmap(norm(val))
99
- rgba = tuple(int(x * 255) for x in color[:3]) + (0.5,) # 0.5 for 50% opacity
100
  return f'background-color: rgba{rgba}'
101
 
102
  else:
 
96
 
97
  def apply_color(val):
98
  color = cmap(norm(val))
99
+ rgba = tuple(int(x * 255) for x in color[:3]) + (0.3,) # 0.5 for 50% opacity
100
  return f'background-color: rgba{rgba}'
101
 
102
  else: