Spaces:
Runtime error
Runtime error
Update image.py
Browse files
image.py
CHANGED
|
@@ -426,6 +426,12 @@ def image_tab():
|
|
| 426 |
outputs=[image_steps_md, image_plot_output, image_equation_display]
|
| 427 |
)
|
| 428 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 429 |
def enable_manual_edit(eq_data):
|
| 430 |
"""Enable manual editing of the equation"""
|
| 431 |
if eq_data is None:
|
|
|
|
| 426 |
outputs=[image_steps_md, image_plot_output, image_equation_display]
|
| 427 |
)
|
| 428 |
|
| 429 |
+
# β
NEW: LLM explanation section
|
| 430 |
+
llm_button = gr.Button("Explain with LLM")
|
| 431 |
+
llm_output = gr.Textbox(label="LLM Explanation", lines=4)
|
| 432 |
+
llm_button.click(fn=explain_with_llm, inputs=preview_output, outputs=llm_output)
|
| 433 |
+
|
| 434 |
+
|
| 435 |
def enable_manual_edit(eq_data):
|
| 436 |
"""Enable manual editing of the equation"""
|
| 437 |
if eq_data is None:
|