Spaces:
Sleeping
Sleeping
Lennard Schober
commited on
Commit
·
c7d8778
1
Parent(s):
d2bb714
Adjust markdown
Browse files
app.py
CHANGED
@@ -416,7 +416,7 @@ def create_gradio_ui():
|
|
416 |
global glob_k, glob_a, glob_b, glob_c
|
417 |
|
418 |
markdown_content = r"""
|
419 |
-
##
|
420 |
$$
|
421 |
\begin{alignat*}{5}
|
422 |
u(x, t)
|
@@ -427,14 +427,20 @@ def create_gradio_ui():
|
|
427 |
$$
|
428 |
|
429 |
Adjust the values for <span style='color: magenta;'>k</span>, <span style='color: cyan;'>a</span>, <span style='color: lime;'>b</span> and <span style='color: orange;'>c</span> with the sliders below.
|
|
|
|
|
|
|
|
|
|
|
|
|
430 |
"""
|
431 |
|
432 |
# Get the initial available files
|
433 |
with gr.Blocks() as demo:
|
434 |
-
gr.Markdown("#
|
435 |
|
436 |
# Function parameter inputs
|
437 |
-
gr.Markdown(markdown_content)
|
438 |
|
439 |
with gr.Row():
|
440 |
with gr.Column(min_width=500):
|
|
|
416 |
global glob_k, glob_a, glob_b, glob_c
|
417 |
|
418 |
markdown_content = r"""
|
419 |
+
## Goal function:
|
420 |
$$
|
421 |
\begin{alignat*}{5}
|
422 |
u(x, t)
|
|
|
427 |
$$
|
428 |
|
429 |
Adjust the values for <span style='color: magenta;'>k</span>, <span style='color: cyan;'>a</span>, <span style='color: lime;'>b</span> and <span style='color: orange;'>c</span> with the sliders below.
|
430 |
+
|
431 |
+
Pressing "Train Coefficients" aims to solve
|
432 |
+
$$
|
433 |
+
\argmin_{\alpha\in\mathbb{R}^m}\|\mathbf{\Phi\alpha-u}\|_2^2,
|
434 |
+
$$
|
435 |
+
where $\Phi$ contains the features depending on the kernel.
|
436 |
"""
|
437 |
|
438 |
# Get the initial available files
|
439 |
with gr.Blocks() as demo:
|
440 |
+
gr.Markdown("# Approximating a solution to the heat equation using RFM")
|
441 |
|
442 |
# Function parameter inputs
|
443 |
+
gr.Markdown(markdown_content, latex_delimiters=[ {"left": "$$", "right": "$$", "display": True }, {"left": "$", "right": "$", "display": False }])
|
444 |
|
445 |
with gr.Row():
|
446 |
with gr.Column(min_width=500):
|