Spaces:
Runtime error
Runtime error
fix: try markdown label text
Browse files
app.py
CHANGED
|
@@ -97,10 +97,6 @@ EXAMPLES_HEADER = """
|
|
| 97 |
"""
|
| 98 |
|
| 99 |
css = """
|
| 100 |
-
.custom_textbox {
|
| 101 |
-
background-color: #fff !important;
|
| 102 |
-
color: #000 !important;
|
| 103 |
-
}
|
| 104 |
.example-button {
|
| 105 |
width: fit-content;
|
| 106 |
font-size: 1rem;
|
|
@@ -177,20 +173,20 @@ with gr.Blocks(css=css, theme=theme) as demo:
|
|
| 177 |
with gr.Row(equal_height=True):
|
| 178 |
with gr.Column(scale=1):
|
| 179 |
gr.Markdown("<div style='color: #fff !important; font-weight: 600'>Your Inputs</div>")
|
| 180 |
-
model_output = gr.Textbox(label="MODEL OUTPUT (required)"
|
| 181 |
-
user_input = gr.Textbox(label="USER INPUT (required)"
|
| 182 |
-
gold_answer = gr.Textbox(label="GOLD ANSWER"
|
| 183 |
-
retrieved_context = gr.Textbox(label="RETRIEVED CONTEXT"
|
| 184 |
-
pass_criteria = gr.Textbox(label="Pass Criteria (required)"
|
| 185 |
-
rubric = gr.Textbox(label="
|
| 186 |
with gr.Row():
|
| 187 |
clear_btn = gr.ClearButton([model_output, user_input, gold_answer, retrieved_context, pass_criteria, rubric])
|
| 188 |
submit_button = gr.Button("Submit", variant="primary")
|
| 189 |
with gr.Column(scale=1):
|
| 190 |
gr.Markdown("<div style='color: #fff !important; font-weight: 600'>GLIDER Output</div>")
|
| 191 |
-
score = gr.Textbox(label="
|
| 192 |
-
reasoning = gr.Textbox(label="
|
| 193 |
-
highlights = gr.Textbox(label="
|
| 194 |
gr.Markdown(" ")
|
| 195 |
gr.Markdown(EXAMPLES_HEADER)
|
| 196 |
with gr.Row():
|
|
|
|
| 97 |
"""
|
| 98 |
|
| 99 |
css = """
|
|
|
|
|
|
|
|
|
|
|
|
|
| 100 |
.example-button {
|
| 101 |
width: fit-content;
|
| 102 |
font-size: 1rem;
|
|
|
|
| 173 |
with gr.Row(equal_height=True):
|
| 174 |
with gr.Column(scale=1):
|
| 175 |
gr.Markdown("<div style='color: #fff !important; font-weight: 600'>Your Inputs</div>")
|
| 176 |
+
model_output = gr.Textbox(label="<span style='color: #fff !important'>MODEL OUTPUT (required)</span>")
|
| 177 |
+
user_input = gr.Textbox(label="<span style='color: #fff !important'>USER INPUT (required)</span>")
|
| 178 |
+
gold_answer = gr.Textbox(label="<span style='color: #fff !important'>GOLD ANSWER</span>")
|
| 179 |
+
retrieved_context = gr.Textbox(label="<span style='color: #fff !important'>RETRIEVED CONTEXT</span>")
|
| 180 |
+
pass_criteria = gr.Textbox(label="<span style='color: #fff !important'>Pass Criteria (required)</span>")
|
| 181 |
+
rubric = gr.Textbox(label="<span style='color: #fff !important'>Rubric</span>")
|
| 182 |
with gr.Row():
|
| 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; font-weight: 600'>GLIDER Output</div>")
|
| 187 |
+
score = gr.Textbox(label="<span style='color: #fff !important'>Score</span>")
|
| 188 |
+
reasoning = gr.Textbox(label="<span style='color: #fff !important'>Reasoning</span>")
|
| 189 |
+
highlights = gr.Textbox(label="<span style='color: #fff !important'>Highlights</span>")
|
| 190 |
gr.Markdown(" ")
|
| 191 |
gr.Markdown(EXAMPLES_HEADER)
|
| 192 |
with gr.Row():
|