Spaces:
Sleeping
Sleeping
fix: more styling and tags from div to headers
Browse files
app.py
CHANGED
@@ -79,8 +79,8 @@ HEADER = """
|
|
79 |
</div>
|
80 |
</div>
|
81 |
<div>
|
82 |
-
<h1>GLIDER: Grading LLM Interactions and Decisions using Explainable Ranking</h1>
|
83 |
-
<h2>Patronus GLIDER Demo</h2>
|
84 |
</div>
|
85 |
</div>
|
86 |
|
@@ -91,9 +91,9 @@ HEADER = """
|
|
91 |
"""
|
92 |
|
93 |
EXAMPLES_HEADER = """
|
94 |
-
<
|
95 |
-
|
96 |
-
</
|
97 |
"""
|
98 |
|
99 |
css = """
|
@@ -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("<
|
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("<
|
187 |
score = gr.Textbox(label="Score")
|
188 |
reasoning = gr.Textbox(label="Reasoning")
|
189 |
highlights = gr.Textbox(label="Highlights")
|
|
|
79 |
</div>
|
80 |
</div>
|
81 |
<div>
|
82 |
+
<h1 style="color: #fff !important">GLIDER: Grading LLM Interactions and Decisions using Explainable Ranking</h1>
|
83 |
+
<h2 style="color: #fff !important">Patronus GLIDER Demo</h2>
|
84 |
</div>
|
85 |
</div>
|
86 |
|
|
|
91 |
"""
|
92 |
|
93 |
EXAMPLES_HEADER = """
|
94 |
+
<h1 style="color: #fff !important">
|
95 |
+
Try it Yourself!
|
96 |
+
</h1>
|
97 |
"""
|
98 |
|
99 |
css = """
|
|
|
172 |
gr.Markdown(HEADER)
|
173 |
with gr.Row(equal_height=True):
|
174 |
with gr.Column(scale=1):
|
175 |
+
gr.Markdown("<h1 style='color: #fff !important'>Your Inputs</h1>")
|
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("<h1 style='color: #fff !important'>GLIDER Output</h1>")
|
187 |
score = gr.Textbox(label="Score")
|
188 |
reasoning = gr.Textbox(label="Reasoning")
|
189 |
highlights = gr.Textbox(label="Highlights")
|