Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -109,7 +109,44 @@ with gr.Blocks() as demo:
|
|
109 |
with gr.Column():
|
110 |
html_result = gr.HTML(
|
111 |
value="""
|
112 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
""",
|
114 |
label="rendered html", show_label=True)
|
115 |
|
|
|
109 |
with gr.Column():
|
110 |
html_result = gr.HTML(
|
111 |
value="""
|
112 |
+
<!DOCTYPE html>
|
113 |
+
<html lang="en">
|
114 |
+
<head>
|
115 |
+
<meta charset="UTF-8">
|
116 |
+
<title>MathJax Example</title>
|
117 |
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML"></script>
|
118 |
+
<style>
|
119 |
+
#content {
|
120 |
+
max-width: 800px;
|
121 |
+
margin: auto;
|
122 |
+
}
|
123 |
+
</style>
|
124 |
+
</head>
|
125 |
+
<body>
|
126 |
+
<div id="content">
|
127 |
+
<p>Here is an example of a LaTeX formula:</p>
|
128 |
+
<div id="math-content">
|
129 |
+
\\[
|
130 |
+
\\begin{array}{l}
|
131 |
+
d_{L}\\left( C_{L},\\left\\{ v^{\\prime }\\right\\} \\right) =\\left\\vert C_{L}\\right\\vert
|
132 |
+
+\\left\\vert \\left\\{ v^{\\prime }\\right\\} \\right\\vert +2\\left( d_{T}\\left(
|
133 |
+
C_{L},v^{\\prime }\\right) -1\\right) \\\\\\
|
134 |
+
\\quad \\quad \\quad \\quad =\\left\\vert C_{v}\\right\\vert -1+\\left\\vert
|
135 |
+
S_{v}^{*}\\right\\vert +2\\left( \\mathrm{rad}\\,T-1\\right) \\\\\\
|
136 |
+
\\quad \\quad \\quad \\quad =\\left\\vert C{ }_{v}\\right\\vert +\\left\\vert
|
137 |
+
S_{v}^{*}\\right\\vert +2\\left( d_{T}\\left( C_{v},S_{v}^{*}\\right) -1\\right) \\\\\\
|
138 |
+
\\quad \\quad \\quad \\quad \\quad -1+2\\left( \\mathrm{rad}\\,T-d_{T}\\left( C_{v},S_{v}^{*}\\right)
|
139 |
+
\\right) \\\\\\
|
140 |
+
\\quad \\quad \\quad \\quad =d_{L}\\left( C_{v},S_{v}^{*}\\right) +1+2\\left( \\mathrm{rad}%
|
141 |
+
\\text{\\,}T-1-d_{T}\\left( C_{v},S_{v}^{*}\\right) \\right) \\\\\\
|
142 |
+
\\quad \\quad \\quad \\quad \\quad =e_{L}\\left( C_{v}\\right) +1+2\\left( \\mathrm{rad}%
|
143 |
+
\\text{\\,}T -1-d_{T}\\left( C_{v},S_{v}^{*}\\right)\\right) .
|
144 |
+
\\end{array}
|
145 |
+
\\]
|
146 |
+
</div>
|
147 |
+
</div>
|
148 |
+
</body>
|
149 |
+
</html>
|
150 |
""",
|
151 |
label="rendered html", show_label=True)
|
152 |
|