Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,6 +33,7 @@ def generate_response(prompt_template, **kwargs):
|
|
| 33 |
|
| 34 |
# Gradio app interface
|
| 35 |
with gr.Blocks() as app:
|
|
|
|
| 36 |
gr.Markdown("## Mathematical Insight Tutor")
|
| 37 |
gr.Markdown("An advanced AI-powered tutor to help you master math concepts with step-by-step explanations.")
|
| 38 |
|
|
@@ -54,7 +55,7 @@ with gr.Blocks() as app:
|
|
| 54 |
)
|
| 55 |
# Button and output
|
| 56 |
button = gr.Button(f"{tab_name} Execute")
|
| 57 |
-
output = gr.HTML()
|
| 58 |
# Link button to the response wrapper
|
| 59 |
button.click(
|
| 60 |
fn=lambda *args: generate_response(prompt_template, **dict(zip([inp["key"] for inp in inputs], args))),
|
|
|
|
| 33 |
|
| 34 |
# Gradio app interface
|
| 35 |
with gr.Blocks() as app:
|
| 36 |
+
gr.html("<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>")
|
| 37 |
gr.Markdown("## Mathematical Insight Tutor")
|
| 38 |
gr.Markdown("An advanced AI-powered tutor to help you master math concepts with step-by-step explanations.")
|
| 39 |
|
|
|
|
| 55 |
)
|
| 56 |
# Button and output
|
| 57 |
button = gr.Button(f"{tab_name} Execute")
|
| 58 |
+
output = gr.HTML("Results will be generated here")
|
| 59 |
# Link button to the response wrapper
|
| 60 |
button.click(
|
| 61 |
fn=lambda *args: generate_response(prompt_template, **dict(zip([inp["key"] for inp in inputs], args))),
|