allenpark commited on
Commit
eb61623
·
1 Parent(s): 41af80a

fix: force make color white

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -60,7 +60,7 @@ EXAMPLES = [
60
  ]
61
 
62
  HEADER = """
63
- <div style="width: 100%; display: flex; flex-direction: column; gap: 24px; padding-top: 24px; position: relative; color: #fff">
64
  <img src="https://postimage.me/images/2024/12/19/ICONGLIDER.md.png" width="175" style="position: absolute; top: 0; right: 48px">
65
  <div style="display: flex; justify-content: space-between; z-index: 1;">
66
  <a href="https://www.patronus.ai">
@@ -91,7 +91,7 @@ HEADER = """
91
  """
92
 
93
  EXAMPLES_HEADER = """
94
- <div style="color: #fff">
95
  # Try it Yourself!
96
  </div>
97
  """
@@ -172,7 +172,7 @@ with gr.Blocks(css=css, theme=theme) as demo:
172
  gr.Markdown(HEADER)
173
  with gr.Row(equal_height=True):
174
  with gr.Column(scale=1):
175
- gr.Markdown("**Your Inputs**")
176
  model_output = gr.Textbox(label="MODEL OUTPUT (required)")
177
  user_input = gr.Textbox(label="USER INPUT (required)")
178
  gold_answer = gr.Textbox(label="GOLD ANSWER")
@@ -183,7 +183,7 @@ with gr.Blocks(css=css, theme=theme) as demo:
183
  clear_btn = gr.ClearButton([model_output, user_input, gold_answer, retrieved_context, pass_criteria, rubric])
184
  submit_button = gr.Button("Submit", variant="primary")
185
  with gr.Column(scale=1):
186
- gr.Markdown("**GLIDER Output**")
187
  score = gr.Textbox(label="Score")
188
  reasoning = gr.Textbox(label="Reasoning")
189
  highlights = gr.Textbox(label="Highlights")
 
60
  ]
61
 
62
  HEADER = """
63
+ <div style="width: 100%; display: flex; flex-direction: column; gap: 24px; padding-top: 24px; position: relative; color: #fff !important">
64
  <img src="https://postimage.me/images/2024/12/19/ICONGLIDER.md.png" width="175" style="position: absolute; top: 0; right: 48px">
65
  <div style="display: flex; justify-content: space-between; z-index: 1;">
66
  <a href="https://www.patronus.ai">
 
91
  """
92
 
93
  EXAMPLES_HEADER = """
94
+ <div style="color: #fff !important">
95
  # Try it Yourself!
96
  </div>
97
  """
 
172
  gr.Markdown(HEADER)
173
  with gr.Row(equal_height=True):
174
  with gr.Column(scale=1):
175
+ gr.Markdown("<div style='color: #fff !important'>**Your Inputs**</div>")
176
  model_output = gr.Textbox(label="MODEL OUTPUT (required)")
177
  user_input = gr.Textbox(label="USER INPUT (required)")
178
  gold_answer = gr.Textbox(label="GOLD ANSWER")
 
183
  clear_btn = gr.ClearButton([model_output, user_input, gold_answer, retrieved_context, pass_criteria, rubric])
184
  submit_button = gr.Button("Submit", variant="primary")
185
  with gr.Column(scale=1):
186
+ gr.Markdown("<div style='color: #fff !important'>**GLIDER Output**</div>")
187
  score = gr.Textbox(label="Score")
188
  reasoning = gr.Textbox(label="Reasoning")
189
  highlights = gr.Textbox(label="Highlights")