Spaces:
Runtime error
Runtime error
Adjust from svg to png
Browse files- app.css +1 -1
- app.py +1 -4
- static/images/reset.png +0 -0
app.css
CHANGED
@@ -21,7 +21,7 @@
|
|
21 |
|
22 |
.probelm-example-container {
|
23 |
position: relative;
|
24 |
-
padding:
|
25 |
border: 1px solid rgba(0, 0, 0, 0.15);
|
26 |
border-radius: 10px;
|
27 |
}
|
|
|
21 |
|
22 |
.probelm-example-container {
|
23 |
position: relative;
|
24 |
+
padding: 38px 12px 12px 12px;
|
25 |
border: 1px solid rgba(0, 0, 0, 0.15);
|
26 |
border-radius: 10px;
|
27 |
}
|
app.py
CHANGED
@@ -727,9 +727,6 @@ example_data = datasets.load_dataset(
|
|
727 |
with open("app.css", "r") as f:
|
728 |
css = f.read()
|
729 |
|
730 |
-
with open("./static/icon/reset.svg", "r") as f:
|
731 |
-
reset_svg = f.read()
|
732 |
-
|
733 |
latex_delimiters = [
|
734 |
{"left": "[", "right": "]", "display": True},
|
735 |
]
|
@@ -770,7 +767,7 @@ with gr.Blocks(css=css, title="Math Olympiad Solver") as demo:
|
|
770 |
gr.HTML("Problem example", elem_classes="probelm-example-title-content")
|
771 |
|
772 |
with gr.Blocks(elem_classes="action-container"):
|
773 |
-
gr.Button("", elem_classes="probelm-example-another", icon=
|
774 |
copy_btn = gr.Button("Copy", elem_classes="probelm-example-copy")
|
775 |
|
776 |
with gr.Row(elem_classes="copy-icon-container"):
|
|
|
727 |
with open("app.css", "r") as f:
|
728 |
css = f.read()
|
729 |
|
|
|
|
|
|
|
730 |
latex_delimiters = [
|
731 |
{"left": "[", "right": "]", "display": True},
|
732 |
]
|
|
|
767 |
gr.HTML("Problem example", elem_classes="probelm-example-title-content")
|
768 |
|
769 |
with gr.Blocks(elem_classes="action-container"):
|
770 |
+
gr.Button("", elem_classes="probelm-example-another", icon="./static/images/reset.png")
|
771 |
copy_btn = gr.Button("Copy", elem_classes="probelm-example-copy")
|
772 |
|
773 |
with gr.Row(elem_classes="copy-icon-container"):
|
static/images/reset.png
ADDED