Spaces:
No application file
No application file
mathysgrapotte commited on
Commit ·
15110d3
1
Parent(s): 33e0ffc
collapsable logs
Browse files
main.py
CHANGED
|
@@ -762,20 +762,15 @@ def run_interface():
|
|
| 762 |
elem_classes="result-container"
|
| 763 |
)
|
| 764 |
|
| 765 |
-
# Live logs section
|
| 766 |
-
with gr.
|
| 767 |
-
with gr.
|
| 768 |
-
gr.
|
| 769 |
-
|
| 770 |
-
|
| 771 |
-
|
| 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():
|