mathysgrapotte commited on
Commit
15110d3
·
1 Parent(s): 33e0ffc

collapsable logs

Browse files
Files changed (1) hide show
  1. main.py +9 -14
main.py CHANGED
@@ -762,20 +762,15 @@ def run_interface():
762
  elem_classes="result-container"
763
  )
764
 
765
- # Live logs section
766
- with gr.Row():
767
- with gr.Column(elem_classes="input-container"):
768
- gr.HTML("""
769
- <div class="section-header">
770
- 🦙 live agent logs
771
- </div>
772
- """)
773
-
774
- # Live log display
775
- live_logs = gr.HTML(
776
- "<div class='live-logs-container'><pre class='live-logs'>Logs will appear here...</pre></div>",
777
- label="smolagents live logs"
778
- )
779
 
780
  # Event handling for the streaming logs
781
  def clear_outputs():
 
762
  elem_classes="result-container"
763
  )
764
 
765
+ # Live logs section (collapsible)
766
+ with gr.Accordion("🦙 Live Agent Logs", open=False, visible=True) as logs_accordion:
767
+ with gr.Row():
768
+ with gr.Column(elem_classes="input-container"):
769
+ # Live log display
770
+ live_logs = gr.HTML(
771
+ "<div class='live-logs-container'><pre class='live-logs'>Logs will appear here...</pre></div>",
772
+ label="smolagents live logs"
773
+ )
 
 
 
 
 
774
 
775
  # Event handling for the streaming logs
776
  def clear_outputs():