Spaces:
Running
Running
Commit History
-
Fix: Add email-validator via pydantic[email] extra Running
- Change pydantic to pydantic[email] to include email-validator - Fixes ImportError: email-validator is not installed Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>4ac5f73 -
Fix: Add apscheduler dependency for LiteLLM cold storage logging
- Add apscheduler>=3.10.0 to dependencies - Fixes LiteLLM error: No module named 'apscheduler' Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>85b0533 -
Fix: Handle 401 errors with automatic redirect to login
- Add 401 (Unauthorized) handling in fetchApi - Automatically redirect to login page when session expires - Add credentials: "include" to ensure cookies are sent - Update .gitignore to not ignore frontend/src/lib/ Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>0e57db8
-
Cleanup: Remove debug logs and development config
- Remove reload=True from uvicorn config (production safety) - Remove DEBUG print statements from knowledge_graphs.py - Remove toast debug console.log from NotificationContext - Remove proxy debug console.log from vite.config.ts Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>96a9109 -
Security: Fix critical vulnerabilities before public release
- Restrict CORS to specific allowed origins (was wildcard *) - Add path traversal protection in agentgraph.py - Remove error detail leakage in 46 API endpoints (no longer expose str(e)) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>bcbd2ec
-
Fix: Add fallback database path when /data not available in HF Spaces
If HF Persistent Storage is not enabled, /data won't be accessible. This fix adds a fallback to /tmp/agentgraph for ephemeral storage. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>39f0c54 -
Fix: Correct middleware ordering for session access in auth
The root cause of login button not working was middleware ordering. In FastAPI/Starlette, middleware runs in REVERSE order (LIFO). Before: Auth ran BEFORE Session, so request.session wasn't available After: Session runs BEFORE Auth, properly setting up request.session This fixes the error: "Session access failed: SessionMiddleware must be installed to access request.session" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>59e68c5 -
Fix: Login button debugging and YouTube iframe lazy-loading for HF Spaces
- Add console logging to AuthModal and AuthContext for debugging - Implement click-to-load pattern for YouTube video to avoid nested iframe issues - Add /auth proxy route to Vite dev server for local development 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>cceb270 -
Remove openlit dependency to fix HF Spaces build timeout
openlit has conflicting dependencies with litellm/anthropic, causing pip to infinitely backtrack through versions during dependency resolution. Since openlit is marked as optional (monitoring tool), removing it to allow successful builds. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>61546e3 -
Security & HF Spaces fixes: Enable CSRF, auth middleware, persistent storage
- Re-enable CSRF state verification in OAuth callback (auth.py:165-177) - Re-enable ConditionalAuthMiddleware in app.py - Add /auth/oauth-callback to excluded paths in auth middleware - Centralize DB_URI config to use /data persistent storage in HF Spaces - Update database/__init__.py and init_db.py to use central config - Add graceful error handling for /data directory creation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>ea856a6 -
Add comprehensive perturbation testing system with E2E tests
Features: - New config.py with Pydantic models for perturbation test configuration - New concurrent_executor.py for parallel test execution with retry logic - Enhanced jailbreak testing with configurable num_techniques parameter - Enhanced counterfactual bias testing with comparison modes (vs_baseline, all_pairs, both) - New testing.py router with API endpoints for presets, demographics, and jailbreak prompts - Frontend PerturbationTestConfig.tsx component for configuration UI Tests: - 130 unit and integration tests for the perturbation testing system - Tests cover config validation, concurrent execution, jailbreak testing, bias detection - API integration tests for all new endpoints 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>795b72e
-
Fix: Add langchain-text-splitters dependency for LangChain 0.3+ compatibility
In LangChain 0.3+, the text_splitter module was moved to a separate package langchain-text-splitters. This fixes the "No module named 'langchain.text_splitter'" error when deploying to Hugging Face Spaces. Changes: - Added langchain-text-splitters>=0.3.0 to pyproject.toml dependencies - Updated import in text_chunking_strategies.py to use langchain_text_splitters - Explicitly install langchain-text-splitters in Dockerfile 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>0b205c4
-
Fix: Explicitly install langchain in Dockerfile to bypass cache
🐛 Problem: - HF Spaces still showing: No module named 'langchain_community' - pyproject.toml was updated but Docker build might be using cache - Dependencies not being properly installed despite pyproject.toml update ✅ Solution: Dockerfile changes: - Explicitly install langchain>=0.3.0 before installing project - Explicitly install langchain-community>=0.3.0 before installing project - Added timestamp comment to force Docker layer rebuild - Ensures langchain packages installed even if cache is stale 🔧 Install Order: 1. pip install --upgrade pip 2. pip install langchain langchain-community (explicit) 3. pip install -e . (project + other dependencies) This guarantees langchain is available even if Docker cache prevents pyproject.toml changes from being recognized. 🎯 Expected Result: - Fresh Docker build with langchain packages - Backend starts successfully - No more import errors87ee823 -
Fix: Add missing langchain dependencies for text processing
🐛 Problem: - Backend startup fails with: No module named 'langchain_community' - text_chunking_strategies.py imports langchain modules - langchain/langchain-community not in pyproject.toml dependencies ✅ Solution: Added to dependencies: - langchain>=0.3.0 (for RecursiveCharacterTextSplitter) - langchain-community>=0.3.0 (for JSONLoader) 🔧 Used By: - agentgraph/input/text_processing/text_chunking_strategies.py - backend/services/processing_service.py - backend/routers/traces.py - agentgraph/extraction/graph_processing/knowledge_graph_processor.py 🎯 Result: - Backend should start successfully - Text chunking functionality available - No more import errors on startupd6c7c85
-
Force HF Spaces redeploy - ensure latest auth status endpoint
81a0a78 -
Fix: Auth status endpoint response format and frontend cache
🐛 Problems: 1. Frontend using old cached JavaScript (index-fe30a47e.js vs index-9bb815aa.js) 2. Backend /auth/status returns user_authenticated but frontend expects authenticated 3. Frontend expects complete user object but backend returns user_info ✅ Solutions: Backend /auth/status endpoint: - Added authenticated: bool(user) field for frontend compatibility - Added user: user field containing complete user object - Maintained legacy fields for backward compatibility Frontend build: - Cleared dist/ cache and rebuilt with latest session detection code - New build should force HF Spaces to use updated JavaScript files 🔧 Technical Changes: Backend Response Format: - authenticated: boolean (NEW - frontend expects this) - user: object (NEW - complete user data) - user_authenticated: boolean (legacy) - user_info: object (legacy) Expected Flow: 1. Frontend loads → calls /auth/status 2. Backend returns session user if exists 3. Frontend detects authenticated: true + user data 4. AuthCont…2157a09 -
Fix: Frontend auth state detection for backend OAuth
🐛 Problem: - Backend OAuth callback successful but frontend still shows login modal - Frontend only checked localStorage, not backend session cookies - User authenticated in backend but frontend remains in logged-out state ✅ Solution: - Added backend session status check to AuthContext.checkAuthStatus() - Frontend now queries /auth/status API with credentials:include - Converts backend user format to frontend OAuth format - Synchronizes session data to localStorage for consistency 🔧 Technical Changes: Frontend AuthContext: - Primary: Check backend session via /auth/status endpoint - Secondary: Check localStorage for persisted auth state - Fallback: Handle OAuth callback redirects - Added proper TypeScript types (scope, emailVerified fields) Backend Session Integration: - Frontend reads session cookies from OAuth callback - Converts backend user object to OAuthResult format - Maintains token expiration and user info consistency 🎯 Flow Now: 1. User authorizes with HF → backend sav…77481d0 -
Fix: Correct OAuth callback URL path mismatch
🐛 Problem: - Frontend uses /oauth-callback but backend expects /auth/oauth-callback - HF OAuth redirects to /oauth-callback which returns 404 - Path inconsistency between frontend and backend routes ✅ Solution: - Updated frontend redirectUri to use /auth/oauth-callback - Updated backend redirect_uri construction to match - Now both frontend and backend use consistent /auth/oauth-callback path 🔧 Technical Changes: Frontend: - AuthContext: redirectUri = /auth/oauth-callback Backend: - auth.py: redirect_uri = /auth/oauth-callback (all instances) - Maintains router prefix consistency: /auth + /oauth-callback 🎯 Expected Result: - OAuth callback should now route correctly to backend handler - No more 404 errors after HF authorization - Complete OAuth flow from authorization to app logina093720 -
🎨 Revamp landing page with modern design and improved user experience
✨ Key Changes: - Updated HTML structure for a cleaner layout and better accessibility - Introduced a dark theme with enhanced color variables for improved aesthetics - Replaced the previous hero section with a more engaging two-column layout - Added a prominent 'Access Research Platform' button with improved styling and hover effects - Integrated a glass-morphism design for cards and sections, enhancing visual depth - Streamlined content presentation, focusing on essential information and user engagement 🚀 User Experience Enhancements: - Implemented responsive design adjustments for better mobile compatibility - Included a live demo badge for the embedded video, drawing user attention - Simplified authentication messaging for clarity This update aims to create a more inviting and functional landing page for users.e3fcbe2 -
Fix: Add /oauth-callback endpoint for OAuth flow
🐛 Problem: - OAuth callback URL /oauth-callback returns 404 error - HF redirects to /oauth-callback but backend only has /auth/callback - Frontend and backend using different callback paths ✅ Solution: - Added new /auth/oauth-callback endpoint route - Unified callback handler handle_oauth_callback() - Updated redirect_uri to use /oauth-callback consistently - Keep legacy /auth/callback for compatibility 🔧 Technical Changes: Backend: - @router.get('/oauth-callback') -> oauth_callback_new() - Refactored oauth_callback logic into shared handle_oauth_callback() - Updated all redirect_uri to use /oauth-callback path - Maintains backward compatibility with existing /auth/callback 🎯 Expected Result: - OAuth callback should work correctly - No more 404 errors after HF authorization - Successful authentication and redirect to app5434c66 -
Fix: Correct OAuth config API endpoint path
🐛 Problem: - Frontend calling /api/auth/oauth-config (404 error) - Backend auth router has prefix '/auth' not '/api/auth' - Endpoint should be /auth/oauth-config ✅ Solution: - Changed frontend API call from /api/auth/oauth-config to /auth/oauth-config - Matches backend router prefix configuration 🔧 Technical Details: - auth router: APIRouter(prefix='/auth') - Correct endpoint: /auth/oauth-config - This should resolve 404 errors and allow OAuth config fetch 🎯 Expected Result: - OAuth config API call should now succeed - Should get client_id from backend - Login process should work correctlyf8eaea3 -
Fix: Add backend OAuth config API for client_id
🐛 Problem: - HF OAuth requires client_id parameter in authorization URL - Frontend can't directly access server environment variables - Getting 400 'client_id is required' error ✅ Solution: - Created /api/auth/oauth-config endpoint in backend - Returns public OAuth config (client_id, scopes, provider_url) - Frontend fetches config before OAuth redirect - Secure: Only returns public info, never client_secret 🔧 Technical Changes: Backend: - Added get_oauth_config_for_frontend() route - Returns OAuth config from environment variables - Includes safety checks for auth_enabled status Frontend: - Fetch OAuth config from backend API before login - Use backend-provided client_id in OAuth URL - Enhanced error handling for config fetch failures - Debug logging for OAuth config validation 🎯 Expected Result: - OAuth URL now includes proper client_id parameter - Should successfully redirect to HF OAuth page - No more '400 client_id required' errors5d5103b -
Major Fix: Replace @huggingface/hub with direct OAuth redirect
🔄 BREAKING CHANGE: Switched from @huggingface/hub library to direct OAuth 🐛 Problem: - @huggingface/hub library requires clientId which isn't available in frontend - 'Missing clientId' errors preventing authentication - Library was incompatible with HF Spaces OAuth setup ✅ Solution: - Use direct HF OAuth URL construction: https://huggingface.co/oauth/authorize - Handle OAuth callback with standard 'code' and 'state' parameters - Store OAuth state in localStorage for CSRF protection - Mock token generation for successful authentication simulation 🔧 Technical Changes: - Removed @huggingface/hub dependency from AuthContext - Direct OAuth URL: /oauth-callback endpoint - Standard OAuth 2.0 authorization code flow - Proper state parameter validation - Simplified error handling 🎯 Expected Result: - Login button should now redirect to HF OAuth page - After authorization, user should be redirected back and logged in - No more 'Missing clientId' errors94b62b3 -
Fix: OAuth clientId missing error in HF Spaces
🐛 Problem: - Modal shows correctly but OAuth login fails with 'Missing clientId' - @huggingface/hub library needs proper client configuration 🔧 Solution: - Added fallback OAuth URL generation for HF Spaces - Enhanced error handling with try-catch for OAuth calls - Added detailed debugging for window.huggingface object - Try default OAuth config if custom scopes fail 🔍 Debug Info Added: - Log complete huggingface object structure - Show available variables and OAuth scopes - Better error messages for OAuth failures This should resolve the OAuth client configuration issues.1b33ba2 -
Debug: Enhanced HF Spaces environment detection
🔍 Added comprehensive HF Spaces detection: - Check window.huggingface.variables (original method) - Check hostname for hf.space and huggingface.co domains - Check for HF-specific meta tags - Added detailed console logging for debugging 🎯 This should resolve the issue where auth modal wasn't showing in HF Spaces environment 📝 Console logs will show exactly what's being detected so we can identify why authentication wasn't triggered121ec8d -
Fix: Auto-trigger auth modal in HF Spaces
🐛 Problem Fixed: - Users could access the app without authentication in HF Spaces - Auth modal was not automatically shown to new users - App was working in 'anonymous' mode instead of requiring login 🔧 Solution: - Added automatic auth modal trigger in HF Spaces environment - Check if user is authenticated on app startup - Show auth modal immediately if not authenticated in HF Spaces - Maintain no-auth behavior for local development 💡 How it works: 1. App loads in HF Spaces 2. AuthContext checks for existing authentication 3. If no auth found AND in HF Spaces → show auth modal 4. If in local dev → continue without auth Now users will see the auth modal immediately when visiting the HF Spaces deployment, ensuring proper authentication flow.1c4b979 -
Implement client-side OAuth authentication with popup modal
✨ New Features: - Frontend-first authentication using @huggingface/hub - Popup auth modal with demo video and research paper - AuthContext for managing client-side auth state - Seamless OAuth flow without backend session complexity 🔧 Technical Implementation: - AuthModal component with beautiful UI design - Type-safe OAuth result conversion for HF API compatibility - localStorage-based token persistence with expiration checks - Environment-aware authentication (HF Spaces vs local dev) - Integration with existing Modal system 🎨 User Experience: - Users see full demo interface immediately - Authentication required only when accessing protected features - Modal shows video and research paper during auth flow - Consistent design with existing shadcn/ui components 🚀 Benefits: - Simplified architecture (no complex backend OAuth) - Better UX (demo first, auth when needed) - HF Spaces native integration - Easier maintenance and debugging This replaces the previous backend-heavy OAuth sy…eb7193f -
add
041fce6 -
Fix HF Spaces iframe session persistence with localStorage fallback
🔧 Enhanced Authentication for HF Spaces iframe: - Added localStorage backup for user data in login success page - Frontend sends localStorage data as header fallback - Backend checks X-HF-User-Backup header when session fails - Improved message passing between login window and parent - Session data restored from localStorage backup 💡 This addresses the critical iframe cookie issues in HF Spaces where session cookies may not persist properly across windows. 🔄 Flow: Login → localStorage backup → Header fallback → Session restoreba6eacd -
Implement HF Spaces best practice: new tab login flow
🔧 HF Spaces OAuth Best Practice: - Login button now opens in new tab (target='_blank') - Added success page that notifies parent window - Implemented message passing between tabs - Added periodic auth status checking during login - Beautiful success page with auto-close functionality 📚 Based on HF documentation: 'You should use target=_blank on the button to open the sign-in page in a new tab, unless you run the space outside its iframe. Otherwise, you might encounter issues with cookies.' This should resolve the session cookie issues in iframe environment.5a2b931 -
Fix usage tracker to read user from session
🐛 Critical Fix: - Usage tracker was only reading user from request.state.user - After removing auth middleware, this was always None - Now usage tracker also checks request.session for user data - This should fix 'anonymous' user tracking after successful login This was the root cause of users appearing as anonymous even after successful OAuth authentication.3c7f84c -
Add debug logging to auth status endpoint
🔍 Debug additions: - Add logging to auth status endpoint to track user data - Log user from request.state and session - This will help identify why authenticated users appear as anonymous Next step: Check HF logs to see what's happening with session data.cf1d34e -
Simplify authentication flow to fix login issues
🔧 Simplification: - Remove complex URL parameter handling - Remove unnecessary OAuth success detection - Simplify AuthContext initialization - Add comprehensive logging for debugging - Remove redundant event listeners 🎯 Goal: Return to a more reliable authentication flow like the original full-page login system but with popup modal. The previous complex state management was causing authentication loops and unreliable state detection.ae27f4a -
Fix login modal authentication issues
🔧 Critical Fixes: - Fix YouTube iframe permissions policy violations (removed web-share) - Fix authentication loop after successful OAuth login - Improve auth status endpoint to return complete user data - Add URL parameter detection for successful authentication - Add page focus listener to refresh auth status - Enhanced logging for better debugging 🐛 Issues Resolved: - Users no longer get stuck in login loop after OAuth success - Iframe permission violations eliminated - Auth state properly recognized after login - Login modal correctly disappears after successful authentication These fixes address the core authentication flow issues identified in HF Spaces deployment.0d7ac2b -
Implement popup login modal system
✨ Major UX Improvement: - Replace full-page login with overlay modal - Users can now see the platform in background before login - Created AuthContext for centralized auth state management - Added LoginModal component with embedded video and paper - Modified API to trigger login modal on 401 errors - Removed forced auth redirect from root route 🎨 Design Features: - Glass-morphism modal design consistent with platform - Embedded demo video and research paper download - Responsive layout with proper backdrop blur - Smooth loading states and transitions 🔧 Technical Changes: - New AuthContext with HF Spaces detection - Custom auth-required events from API layer - Conditional authentication based on environment - Proper error handling for unauthorized requests This provides a much better user experience where users can explore the interface before deciding to authenticate.aad2775
-
Add research paper PDF to login page with Git LFS
✨ Features: - Created backend/static/papers/ directory for PDF storage - Added AgentGraph research paper (AAAI version) with Git LFS - Configured FastAPI to serve static files at /static route - Enhanced login page with paper download section below video - Clean glass-card design with document icon and download link - Opens PDF in new tab for better UX 📄 The research paper is now prominently displayed alongside the demo video, giving users immediate access to the academic foundation of the platform. 🔧 Git LFS configured for PDF files to meet HF repository requirements.3b65325 -
Simplify login page and remove API key option
✨ Changes: - Removed dual authentication options (HF OAuth vs API key) - Simplified to single 'Access Research Platform' button - Removed API key input form and JavaScript handling - Cleaner, more focused user experience - Back to original simple design without complexity The login page now has a single clear path for users.bfea55d -
🔧 Fix TypeScript build error in API headers
✅ Issue Fixed: - Resolved TS2322 type error in api.ts headers - Changed from Record<string, string> to proper header merging - Separated baseHeaders for API key injection - Maintained compatibility with existing header options 🛠️ Technical Changes: - Use baseHeaders for type-safe API key addition - Merge baseHeaders with options?.headers safely - Prevent TypeScript index signature conflicts - Ensure build compatibility across environments726398b -
🔑 Add dual authentication system: API key + OAuth
✨ Features Added: - Dual authentication options on login page - Users can choose between own API key or HF OAuth - API key stored locally in browser - Automatic API key header injection in all requests - Authentication management in Settings modal 🔧 Technical Implementation: - Updated login page with two authentication options - Modified fetchApi to include X-OpenAI-API-Key header - Enhanced backend auth dependencies to support API key mode - Added comprehensive auth section in SettingsModal - API key validation and local storage management 🎯 User Benefits: - No forced authentication for users with own API keys - Flexible authentication based on user preference - Clear indication of current auth method - Easy API key management and removal 💡 Security Features: - API keys stored only locally - Masked API key display in settings - Confirmation dialogs for key removal - Proper validation of API key format220ebd3 -
Switch login page to light theme for consistency with main app
45acb90 -
Simplify login page: remove badges and institutional info
e0f4f44 -
Separate login page to HTML template for better maintainability
2175f7f -
Use shadcn/ui design system for login page consistency
64857c1 -
✨ Simplify landing page: Bigger CTA & cleaner design
🎯 Key Changes: - Made 'Access Research Platform' button much larger and more prominent - Increased button padding (24px 48px), font size (20px), and weight (700) - Enhanced button shadow and hover effects - Set minimum width (280px) for better presence 🧹 Content Simplification: - Removed feature grid (4 feature cards) - too much information - Simplified description to one concise sentence - Shortened authentication message - Kept only essential content: title, subtitle, description, CTA 🎨 Visual Focus: - Button now clearly the primary action element - Cleaner information hierarchy - More breathing room around CTA - Maintained premium dark theme aesthetic User feedback: 'Access button too small and not obvious enough, too much information'5bdf3b9 -
🎨 Complete redesign: Premium research platform landing page
✨ Features: - Dark gradient hero section with subtle animations - Research paper-inspired content and terminology - Four feature highlights (Interactive Graphs, Failure Detection, Robustness Testing, Causal Analysis) - Professional institutions credit (Holistic AI × UCL) - Premium glass-morphism design elements 🎨 Visual Design: - Dark theme with gradient background (#0f172a → #334155) - Inter font family for modern typography - Gradient text effects and backdrop blur - Floating video container with 'Live Demo' badge - Hover effects and smooth transitions - Mobile-responsive two-column layout 📝 Content Updates: - Full research paper subtitle - Academic-style feature descriptions - Professional 'Research Platform' badge - Institutional collaboration credits - Research-focused authentication messaging 🚀 User Experience: - Hero section spans full viewport - Clean information hierarchy - Call-to-action: 'Access Research Platform' - Embedded demo video with enhanced styling - Responsiv…35f32c6 -
Redesign login page with cleaner, minimal design
✨ New Features: - Clean, minimal design without emojis - Embedded YouTube demo video (btrS9pfDYJY) - Two-column layout (text + video) - Responsive design for mobile 🎨 Design Changes: - Removed all emojis and decorative elements - Clean typography with modern font stack - Subtle shadows and minimal color palette - Professional blue button styling - Mobile-first responsive grid layout 📱 Mobile Optimized: - Single column layout on mobile - Proper video container aspect ratio - Touch-friendly button sizinga362bd4 -
Remove target='_blank' for single-page login experience
- Remove target='_blank' from login button - Remove auto-refresh JavaScript - Keep the critical SameSite=None session fix for iframe compatibility - User preference: login in same page instead of new tab9036c1d -
Fix iframe cookie issues for HF Spaces
Based on HF official docs about iframe cookie problems: 1. Ensure SameSite=None for iframe cookies in HF Spaces - Critical for cross-origin iframe cookie support 2. Add target='_blank' to login button - Opens login in new tab as recommended by HF docs - Avoids iframe cookie restrictions 3. Add auto-refresh login detection - JavaScript checks login status every 3s - Auto-redirects when user is authenticated - Better UX for iframe login flow This should fix the session persistence issue we've been seeing.66e834a -
Fix OAuth according to HF official documentation
Based on https://huggingface.co/docs/hub/en/spaces-oauth: 1. Fix OAuth scopes: - Include 'openid profile' as required by HF - These are automatically included but we specify them explicitly 2. Use SPACE_HOST environment variable: - Official recommended way to get redirect URI - Fallback to manual construction if not available 3. Update README.md with proper HF OAuth configuration This should fix the session/cookie issues we've been experiencing.b9161fb -
Fix UnboundLocalError and add environment detection debug
- Remove duplicate is_huggingface_space import in auth.py - Add environment detection debugging in app.py - This will show if HF Spaces detection is working - Should fix the 500 error in auth callbackfd80df3