Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,7 +28,12 @@ def generate_response(prompt_template, **kwargs):
|
|
| 28 |
"markdown.extensions.attr_list",
|
| 29 |
]
|
| 30 |
)
|
| 31 |
-
return f"""<script type="text/javascript" async
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
{html}"""
|
| 33 |
|
| 34 |
# Gradio app interface
|
|
|
|
| 28 |
"markdown.extensions.attr_list",
|
| 29 |
]
|
| 30 |
)
|
| 31 |
+
return f"""<script type="text/javascript" async
|
| 32 |
+
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML">
|
| 33 |
+
</script>
|
| 34 |
+
<script>
|
| 35 |
+
MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
|
| 36 |
+
</script>
|
| 37 |
{html}"""
|
| 38 |
|
| 39 |
# Gradio app interface
|