MasteredUltraInstinct commited on
Commit
e4d881f
Β·
verified Β·
1 Parent(s): bf38e16

Update image.py

Browse files
Files changed (1) hide show
  1. image.py +6 -0
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: