m-ric HF staff commited on
Commit
08b68f4
·
verified ·
1 Parent(s): 1a65c20

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -105,7 +105,7 @@ def compute_all(input_type, prompt_text, completion_text, base_prompt_tokens, ba
105
 
106
  else:
107
  def apply_color(val):
108
- return "background-color: rgba(0, 0, 0, 0)"
109
 
110
 
111
  # Apply colors and formatting
@@ -156,10 +156,10 @@ with gr.Blocks(css="""
156
  border-bottom: 1px solid #dddddd;
157
  }
158
  .styled-table tbody tr:nth-of-type(even) {
159
- background-color: #f3f3f3;
160
  }
161
  .styled-table tbody tr:nth-of-type(odd) {
162
- background-color: #ffffff;
163
  }
164
  """, theme=gr.themes.Soft(primary_hue=gr.themes.colors.yellow, secondary_hue=gr.themes.colors.orange)) as demo:
165
  gr.Markdown("""
 
105
 
106
  else:
107
  def apply_color(val):
108
+ return "background-color: var(--input-background-fill)"
109
 
110
 
111
  # Apply colors and formatting
 
156
  border-bottom: 1px solid #dddddd;
157
  }
158
  .styled-table tbody tr:nth-of-type(even) {
159
+ background-color: var(--input-background-fill);
160
  }
161
  .styled-table tbody tr:nth-of-type(odd) {
162
+ background-color: var(--block-background-fill);
163
  }
164
  """, theme=gr.themes.Soft(primary_hue=gr.themes.colors.yellow, secondary_hue=gr.themes.colors.orange)) as demo:
165
  gr.Markdown("""