Spaces:
Sleeping
Sleeping
Allen Park
commited on
Commit
·
d27dadc
1
Parent(s):
de4039b
simplify css to just font-size and font-weight
Browse files
app.py
CHANGED
@@ -101,13 +101,6 @@ 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 |
"""
|
113 |
|
@@ -231,7 +224,7 @@ with gr.Blocks(css=css, theme=gr.themes.Default(font=[gr.themes.GoogleFont("Plus
|
|
231 |
score = gr.Textbox(label="Score (FAIL if Hallucinated, PASS if not)")
|
232 |
with gr.Row():
|
233 |
with gr.Column():
|
234 |
-
for
|
235 |
template_btn = gr.Button(f"{example['emoji']} {example['question']}", elem_classes="example-button")
|
236 |
template_btn.click(
|
237 |
fn=select_template,
|
|
|
101 |
.example-button {
|
102 |
font-size: .75rem;
|
103 |
font-weight: 400 !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
}
|
105 |
"""
|
106 |
|
|
|
224 |
score = gr.Textbox(label="Score (FAIL if Hallucinated, PASS if not)")
|
225 |
with gr.Row():
|
226 |
with gr.Column():
|
227 |
+
for _, example in enumerate(EXAMPLES):
|
228 |
template_btn = gr.Button(f"{example['emoji']} {example['question']}", elem_classes="example-button")
|
229 |
template_btn.click(
|
230 |
fn=select_template,
|