Spaces:
Running
Running
Update app.py
Browse files
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.
|
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:
|