Allen Park commited on
Commit
0edf770
·
1 Parent(s): b16c6b4

fix(make examples fill own row & background color priority in css)

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -100,12 +100,13 @@ UPLOADABLE_FILE_TYPES = [".pdf", ".txt", ".docx", ".doc"]
100
  css = """
101
  .example-button {
102
  font-size: .75rem;
103
- background-color: #fff;
 
104
  border: 1px solid #564fe6;
105
  color: #564fe6;
106
  }
107
  .example-button:hover {
108
- background-color: #564fe6;
109
  color: #fff;
110
  }
111
  """
@@ -228,8 +229,8 @@ with gr.Blocks(css=css, theme=gr.themes.Default(font=[gr.themes.GoogleFont("Plus
228
  with gr.Column(scale=1):
229
  reasoning = gr.Textbox(label="Reasoning")
230
  score = gr.Textbox(label="Score (FAIL if Hallucinated, PASS if not)")
231
- with gr.Row():
232
- for idx, example in enumerate(EXAMPLES):
233
  template_btn = gr.Button(f"{example['emoji']} {example['question']}", elem_classes="example-button")
234
  template_btn.click(
235
  fn=select_template,
 
100
  css = """
101
  .example-button {
102
  font-size: .75rem;
103
+ font-weight: 400 !important;
104
+ background-color: #fff !important;
105
  border: 1px solid #564fe6;
106
  color: #564fe6;
107
  }
108
  .example-button:hover {
109
+ background-color: #564fe6 !important;
110
  color: #fff;
111
  }
112
  """
 
229
  with gr.Column(scale=1):
230
  reasoning = gr.Textbox(label="Reasoning")
231
  score = gr.Textbox(label="Score (FAIL if Hallucinated, PASS if not)")
232
+ for idx, example in enumerate(EXAMPLES):
233
+ with gr.Row():
234
  template_btn = gr.Button(f"{example['emoji']} {example['question']}", elem_classes="example-button")
235
  template_btn.click(
236
  fn=select_template,