Spaces:
Sleeping
Sleeping
Update app.py
Browse files33 unmodified lines3435363738394012 unmodified lines5354555556575859606162636456575859606162636465666733 unmodified lines
return "", 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 lines outputs=[state_history] )
# ✅ **Explicitly tell Gradio to use MathJax for LaTeX rendering**gr.Markdown( r""" <script type="text/javascript"> MathJax = { tex: { inlineMath: [['$', '$'], ['\\(', '\\)']] } }; </script> """) 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