Spaces:
Sleeping
Sleeping
Update app.py
Browse files33 unmodified lines34353637383912 unmodified lines5253545556575859606162636465666733 unmodified linesreturn "", historywith gr.Blocks() as demo:gr.Markdown("## AI-Guided Math PD Chatbot")chatbot = gr.Chatbot(height=500)12 unmodified linesoutputs=[state_history])# ✅ **Explicitly tell Gradio to use MathJax for LaTeX rendering**gr.Markdown(r"""<script type="text/javascript">MathJax = {tex: { inlineMath: [['$', '$'], ['\\(', '\\)']] }};</script>""")if __name__ == "__main__":demo.launch(server_name="0.0.0.0", server_port=7860, share=True)33 unmodified lines3435363738394012 unmodified lines53545556575859606162636465666733 unmodified linesreturn "", history# ✅ **Explicitly tell Gradio to use MathJax for LaTeX rendering**with gr.Blocks() as demo:gr.Markdown("## AI-Guided Math PD Chatbot")chatbot = gr.Chatbot(height=500)12 unmodified linesoutputs=[state_history])gr.Markdown(r"""<script type="text/javascript">MathJax = {tex: { inlineMath: [['$', '$'], ['\\(', '\\)']] }};</script>""")if __name__ == "__main__":demo.launch(server_name="0.0.0.0", server_port=7860, share=True)
app.py+10-10