Spaces:
Running
on
Zero
Running
on
Zero
Martín Santillán Cooper
commited on
Commit
•
711dd89
1
Parent(s):
b022d45
Add icon button
Browse files- app.py +1 -1
- send-white.png +0 -0
- send.png +0 -0
- styles.css +3 -2
app.py
CHANGED
@@ -135,7 +135,7 @@ with gr.Blocks(
|
|
135 |
user_message = gr.Textbox(label="User Message", lines=3, interactive=True, value=starting_test_case['user_message'], elem_classes=['input-box'])
|
136 |
assistant_message = gr.Textbox(label="Assistant Message", lines=3, interactive=True, visible=False, value=starting_test_case['assistant_message'], elem_classes=['input-box'])
|
137 |
|
138 |
-
submit_button = gr.Button("Evaluate", variant='primary'
|
139 |
|
140 |
with gr.Column(elem_classes="result-container", visible=False) as result_container:
|
141 |
evaluation_results_label = gr.HTML("<span>Results</span>", elem_classes='result-title', visible=False)
|
|
|
135 |
user_message = gr.Textbox(label="User Message", lines=3, interactive=True, value=starting_test_case['user_message'], elem_classes=['input-box'])
|
136 |
assistant_message = gr.Textbox(label="Assistant Message", lines=3, interactive=True, visible=False, value=starting_test_case['assistant_message'], elem_classes=['input-box'])
|
137 |
|
138 |
+
submit_button = gr.Button("Evaluate", variant='primary',icon=os.path.join(os.path.dirname(os.path.abspath(__file__)), 'send-white.png'), elem_classes='submit-button')
|
139 |
|
140 |
with gr.Column(elem_classes="result-container", visible=False) as result_container:
|
141 |
evaluation_results_label = gr.HTML("<span>Results</span>", elem_classes='result-title', visible=False)
|
send-white.png
ADDED
send.png
ADDED
styles.css
CHANGED
@@ -125,8 +125,9 @@
|
|
125 |
gap: 0;
|
126 |
}
|
127 |
|
128 |
-
.submit-button
|
129 |
-
|
|
|
130 |
}
|
131 |
|
132 |
.subtitle-harms {
|
|
|
125 |
gap: 0;
|
126 |
}
|
127 |
|
128 |
+
.submit-button {
|
129 |
+
flex-direction: row-reverse;
|
130 |
+
gap: 0.5rem;
|
131 |
}
|
132 |
|
133 |
.subtitle-harms {
|