Update app.py
Browse files
app.py
CHANGED
@@ -245,6 +245,11 @@ css = """
|
|
245 |
border: 1px solid #ccc;
|
246 |
}
|
247 |
/* Style for the upvote button */
|
|
|
|
|
|
|
|
|
|
|
248 |
.upvote-button {
|
249 |
width: 500px; /* Set button width */
|
250 |
height: 50px; /* Set button height */
|
@@ -284,9 +289,9 @@ with gr.Blocks(css=css) as demo:
|
|
284 |
output_markdown = gr.Markdown(label="Output")
|
285 |
with gr.Row():
|
286 |
with gr.Column():
|
287 |
-
upvote_button = gr.Button("π")
|
288 |
with gr.Column():
|
289 |
-
downvote_button = gr.Button("π")
|
290 |
with gr.Column():
|
291 |
vote_markdown = gr.Markdown(label="Output")
|
292 |
with gr.Column():
|
|
|
245 |
border: 1px solid #ccc;
|
246 |
}
|
247 |
/* Style for the upvote button */
|
248 |
+
.gr-button.warning {
|
249 |
+
width: 100%;
|
250 |
+
max-width: 300px;
|
251 |
+
margin: 0 auto;
|
252 |
+
}
|
253 |
.upvote-button {
|
254 |
width: 500px; /* Set button width */
|
255 |
height: 50px; /* Set button height */
|
|
|
289 |
output_markdown = gr.Markdown(label="Output")
|
290 |
with gr.Row():
|
291 |
with gr.Column():
|
292 |
+
upvote_button = gr.Button("π", elem_classes=["warning"])
|
293 |
with gr.Column():
|
294 |
+
downvote_button = gr.Button("π", elem_classes=["warning"])
|
295 |
with gr.Column():
|
296 |
vote_markdown = gr.Markdown(label="Output")
|
297 |
with gr.Column():
|