Spaces:
Sleeping
Sleeping
fix: update copy
Browse files
app.py
CHANGED
@@ -86,7 +86,9 @@ HEADER = """
|
|
86 |
<br>
|
87 |
<div style="color: #fff !important; width: 70%"><span style="color: inherit; font-weight: 600">GLIDER</span> is a powerful 3B evaluator LLM that can score any text input and associated context on arbitrary user defined criteria.</div>
|
88 |
<br>
|
89 |
-
<div style="color: #fff !important; width: 70%;"><span style="color: inherit; font-weight: 600">Getting Started</span>: First, provide a model output (text generated by your model) and user input (text used to prompt your model) and optionally a gold answer (label or gold answer to the prompt) and retrieved context (context used for text generated by your model). Next, provide a pass criteria (description of a passing evaluation). Finally, provide an optional rubric (scoring scales with explanations) and then click submit. The GLIDER Output panel will provide a score and reasoning which is a human readable explanation of the score.</div>
|
|
|
|
|
90 |
<br>
|
91 |
"""
|
92 |
|
@@ -97,10 +99,6 @@ EXAMPLES_HEADER = """
|
|
97 |
"""
|
98 |
|
99 |
css = """
|
100 |
-
#test textarea {
|
101 |
-
background-color: #fff !important;
|
102 |
-
color: #000 !important;
|
103 |
-
}
|
104 |
.example-button {
|
105 |
width: fit-content;
|
106 |
font-size: 1rem;
|
@@ -177,7 +175,7 @@ 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")
|
|
|
86 |
<br>
|
87 |
<div style="color: #fff !important; width: 70%"><span style="color: inherit; font-weight: 600">GLIDER</span> is a powerful 3B evaluator LLM that can score any text input and associated context on arbitrary user defined criteria.</div>
|
88 |
<br>
|
89 |
+
<div style="color: #fff !important; width: 70%;"><span style="color: inherit; font-weight: 600">Getting Started</span>: First, provide a model output (text generated by your model) and user input (text used to prompt your model) and optionally a gold answer (label or gold answer to the prompt) and retrieved context (context used for text generated by your model). Next, provide a pass criteria (description of a passing evaluation). Finally, provide an optional but recommended rubric (scoring scales with explanations) and then click submit. The GLIDER Output panel will provide a score and reasoning which is a human readable explanation of the score.</div>
|
90 |
+
<br>
|
91 |
+
<div style="color: #fff !important; width: 70%;"><span style="color: inherit; font-weight: 600">Note</span>: In your Pass Criteria, use the attribute tags from above (i.e. MODEL OUTPUT, USER INPUT, GOLD ANSWER, RETRIEVED CONTEXT).</div>
|
92 |
<br>
|
93 |
"""
|
94 |
|
|
|
99 |
"""
|
100 |
|
101 |
css = """
|
|
|
|
|
|
|
|
|
102 |
.example-button {
|
103 |
width: fit-content;
|
104 |
font-size: 1rem;
|
|
|
175 |
with gr.Row(equal_height=True):
|
176 |
with gr.Column(scale=1):
|
177 |
gr.Markdown("<div style='color: #fff !important; font-weight: 600'>Your Inputs</div>")
|
178 |
+
model_output = gr.Textbox(label="MODEL OUTPUT (required)")
|
179 |
user_input = gr.Textbox(label="USER INPUT (required)")
|
180 |
gold_answer = gr.Textbox(label="GOLD ANSWER")
|
181 |
retrieved_context = gr.Textbox(label="RETRIEVED CONTEXT")
|