Spaces:
Running
Running
Mandark-droid
commited on
Commit
·
994b341
1
Parent(s):
664f166
Fix Gradio 5.49.1 compatibility issues
Browse files- Remove css parameter from gr.Blocks() (not supported in 5.49.1)
- Fix environment variable: DEV_MODE -> DISABLE_OAUTH (matches auth.py)
- Update .env, .env.example, and README with correct variable name
- .env.example +1 -1
- README.md +4 -4
- app.py +1 -2
.env.example
CHANGED
|
@@ -16,4 +16,4 @@ LEADERBOARD_REPO=kshitijthakkar/smoltrace-leaderboard
|
|
| 16 |
# METRICS_REPO=kshitijthakkar/agent-metrics-gpt4-20251116
|
| 17 |
|
| 18 |
# Development Mode (skip authentication for local testing)
|
| 19 |
-
|
|
|
|
| 16 |
# METRICS_REPO=kshitijthakkar/agent-metrics-gpt4-20251116
|
| 17 |
|
| 18 |
# Development Mode (skip authentication for local testing)
|
| 19 |
+
DISABLE_OAUTH=true
|
README.md
CHANGED
|
@@ -87,8 +87,8 @@ MCP_SERVER_URL=https://kshitijthakkar-tracemind-mcp-server.hf.space/gradio_api/m
|
|
| 87 |
# Dataset Configuration
|
| 88 |
LEADERBOARD_REPO=kshitijthakkar/smoltrace-leaderboard
|
| 89 |
|
| 90 |
-
# Development Mode (optional)
|
| 91 |
-
|
| 92 |
```
|
| 93 |
|
| 94 |
## Data Sources
|
|
@@ -177,8 +177,8 @@ insights = mcp_client.analyze_leaderboard(
|
|
| 177 |
# Install dependencies
|
| 178 |
pip install -r requirements.txt
|
| 179 |
|
| 180 |
-
# Set development mode
|
| 181 |
-
export
|
| 182 |
|
| 183 |
# Run the app
|
| 184 |
python app.py
|
|
|
|
| 87 |
# Dataset Configuration
|
| 88 |
LEADERBOARD_REPO=kshitijthakkar/smoltrace-leaderboard
|
| 89 |
|
| 90 |
+
# Development Mode (optional - disables OAuth for local testing)
|
| 91 |
+
DISABLE_OAUTH=true
|
| 92 |
```
|
| 93 |
|
| 94 |
## Data Sources
|
|
|
|
| 177 |
# Install dependencies
|
| 178 |
pip install -r requirements.txt
|
| 179 |
|
| 180 |
+
# Set development mode (optional - disables OAuth)
|
| 181 |
+
export DISABLE_OAUTH=true
|
| 182 |
|
| 183 |
# Run the app
|
| 184 |
python app.py
|
app.py
CHANGED
|
@@ -15,7 +15,6 @@ load_dotenv()
|
|
| 15 |
from utils.auth import is_authenticated, get_user_info, create_login_button, create_user_info_display, DEV_MODE
|
| 16 |
from utils.navigation import Navigator, Screen
|
| 17 |
from data_loader import create_data_loader_from_env
|
| 18 |
-
from styles.tracemind_theme import get_tracemind_css
|
| 19 |
from mcp_client.sync_wrapper import get_sync_mcp_client
|
| 20 |
|
| 21 |
# Initialize
|
|
@@ -87,7 +86,7 @@ def estimate_evaluation_cost(model, agent_type, num_tests):
|
|
| 87 |
def build_ui():
|
| 88 |
"""Build the Gradio UI"""
|
| 89 |
|
| 90 |
-
with gr.Blocks(
|
| 91 |
# Header
|
| 92 |
gr.Markdown("""
|
| 93 |
# 🔍 TraceMind-AI
|
|
|
|
| 15 |
from utils.auth import is_authenticated, get_user_info, create_login_button, create_user_info_display, DEV_MODE
|
| 16 |
from utils.navigation import Navigator, Screen
|
| 17 |
from data_loader import create_data_loader_from_env
|
|
|
|
| 18 |
from mcp_client.sync_wrapper import get_sync_mcp_client
|
| 19 |
|
| 20 |
# Initialize
|
|
|
|
| 86 |
def build_ui():
|
| 87 |
"""Build the Gradio UI"""
|
| 88 |
|
| 89 |
+
with gr.Blocks(title="TraceMind-AI") as demo:
|
| 90 |
# Header
|
| 91 |
gr.Markdown("""
|
| 92 |
# 🔍 TraceMind-AI
|