Spaces:
Running
Running
Commit ·
45b9051
1
Parent(s): 05222de
Add Metrics Info page
Browse files- app.py +21 -0
- css_html_js.py +11 -0
app.py
CHANGED
|
@@ -227,6 +227,27 @@ with gr.Blocks(css=custom_css, js=js_func, theme=gr.themes.Default(primary_hue=c
|
|
| 227 |
with gr.Row(equal_height=True):
|
| 228 |
scatter_plot = gr.Plot(value=generate_scatter_plot(default_benchmark, default_metric), label="Bubble Chart", elem_id="full-width-plot")
|
| 229 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 230 |
with gr.Tab("About Us"):
|
| 231 |
gr.HTML(
|
| 232 |
"""
|
|
|
|
| 227 |
with gr.Row(equal_height=True):
|
| 228 |
scatter_plot = gr.Plot(value=generate_scatter_plot(default_benchmark, default_metric), label="Bubble Chart", elem_id="full-width-plot")
|
| 229 |
|
| 230 |
+
with gr.Tab("Metrics Information"):
|
| 231 |
+
gr.Markdown(
|
| 232 |
+
r"""
|
| 233 |
+
# Hello World! $\frac{\sqrt{x + y}}{4}$ is today's lesson
|
| 234 |
+
|
| 235 |
+
## the $\sqrt{x + y}$ is first
|
| 236 |
+
|
| 237 |
+
Start with $\frac{\frac{x+1}{x+2}}{x+3}$ then we get $ 2+x $ and $3$.
|
| 238 |
+
|
| 239 |
+
There are three formulas to know:
|
| 240 |
+
|
| 241 |
+
the first is $\gamma^2 + \theta^2 = \omega^2$
|
| 242 |
+
|
| 243 |
+
$\sqrt{x^2+1}$ is next
|
| 244 |
+
|
| 245 |
+
Integral $\int_{a}^{b} x^2 \,dx$ is last
|
| 246 |
+
|
| 247 |
+
Start typing below to see the output.
|
| 248 |
+
|
| 249 |
+
I spent $5 at the grocery store. Then I bought a $2.50 ice cream cone.
|
| 250 |
+
""", latex_delimiters=[ {"left": "$", "right": "$", "display": False }], elem_classes="metrics-page")
|
| 251 |
with gr.Tab("About Us"):
|
| 252 |
gr.HTML(
|
| 253 |
"""
|
css_html_js.py
CHANGED
|
@@ -112,6 +112,17 @@ custom_css = """
|
|
| 112 |
input[role="listbox"] {
|
| 113 |
cursor: pointer !important;
|
| 114 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 115 |
"""
|
| 116 |
|
| 117 |
get_window_url_params = """
|
|
|
|
| 112 |
input[role="listbox"] {
|
| 113 |
cursor: pointer !important;
|
| 114 |
}
|
| 115 |
+
.metrics-page {
|
| 116 |
+
margin: auto;
|
| 117 |
+
margin-top: -5px;
|
| 118 |
+
padding: 15px;
|
| 119 |
+
border: 1px solid #ccc;
|
| 120 |
+
border-radius: 10px;
|
| 121 |
+
text-align: left;
|
| 122 |
+
}
|
| 123 |
+
.metrics-page p {
|
| 124 |
+
text-align: left !important;
|
| 125 |
+
}
|
| 126 |
"""
|
| 127 |
|
| 128 |
get_window_url_params = """
|