Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
# app.py — REFACTORED
|
| 2 |
import gradio as gr
|
| 3 |
from backend import (
|
| 4 |
# User Management
|
|
@@ -17,7 +17,6 @@ import psutil
|
|
| 17 |
import torch
|
| 18 |
|
| 19 |
# Gradio's session state will manage user data for each session
|
| 20 |
-
# No global user_state dictionary needed for this approach
|
| 21 |
# We will use gr.State to hold session-specific data
|
| 22 |
|
| 23 |
# --- UI HELPER FUNCTIONS ---
|
|
@@ -191,7 +190,9 @@ with gr.Blocks(title="Code Agents Pro", theme=gr.themes.Soft()) as demo:
|
|
| 191 |
choices=[],
|
| 192 |
interactive=True,
|
| 193 |
)
|
| 194 |
-
|
|
|
|
|
|
|
| 195 |
logs_display = gr.Markdown("Logs will appear here in real-time.", elem_classes=["monospace"])
|
| 196 |
|
| 197 |
# System stats monitor at the bottom
|
|
|
|
| 1 |
+
# app.py — REFACTORED & BACKWARD-COMPATIBLE VERSION
|
| 2 |
import gradio as gr
|
| 3 |
from backend import (
|
| 4 |
# User Management
|
|
|
|
| 17 |
import torch
|
| 18 |
|
| 19 |
# Gradio's session state will manage user data for each session
|
|
|
|
| 20 |
# We will use gr.State to hold session-specific data
|
| 21 |
|
| 22 |
# --- UI HELPER FUNCTIONS ---
|
|
|
|
| 190 |
choices=[],
|
| 191 |
interactive=True,
|
| 192 |
)
|
| 193 |
+
# --- THIS IS THE FIX ---
|
| 194 |
+
# Replaced gr.Box with the backward-compatible gr.Group
|
| 195 |
+
with gr.Group(elem_classes=["logs-container"]):
|
| 196 |
logs_display = gr.Markdown("Logs will appear here in real-time.", elem_classes=["monospace"])
|
| 197 |
|
| 198 |
# System stats monitor at the bottom
|