Spaces:
Sleeping
Sleeping
Commit History
-
Refactor: 将评分系统改为排名系统
testcoder-ui将视频模型评估从打分(0-10分)改为排名(1-4)系统,简化用户操作: - 改进用户体验:排名比打分更直观,用户只需比较哪个视频更好 - UI 变更:评分滑块 → 排名单选按钮(1=最好,4=最差) - 验证逻辑:自动检查排名重复和完整性 - 历史记录:显示排名和奖牌图标(🥇🥈🥉4️⃣) - 数据兼容:保持 Dataset 格式兼容,scores 字段现存储排名值977b1e8
-
feat: 并行视频生成 + 更新数据集路径
testcoder-ui- 更新数据集路径: video-model-evaluator-cuti/video-evaluations - 添加异步并行视频生成,使用 asyncio.gather - 限制 Pollo API 并发数为 5(使用 Semaphore) - 性能提升:4个模型从串行20+分钟降至并行5-6分钟 - 提交阶段快速并行,轮询阶段受信号量限制a0d3b53
-
Add admin tool to adjust user daily quota
testcoder-uiFeatures: ✅ Show user status (calls used/remaining) ✅ Reset user quota (set to 0, give 4 new calls) ✅ Set specific used count ✅ Add extra quota (supports over-quota like 8 calls/day) Usage: python admin_adjust_user_quota.py <username> show python admin_adjust_user_quota.py <username> reset python admin_adjust_user_quota.py <username> set 2 python admin_adjust_user_quota.py <username> add 4 Benefits: - Emergency quota reset for users - VIP users with higher daily limits (e.g. 8 calls/day) - Easy quota management via CLI - All operations require confirmation - Audit trail in 'note' field Data structure: call_counts/2026-01-09/username.json { "user": "username", "date": "2026-01-09", "count": 2, "note": "Set to 2 by admin" } Also improved evaluation storage: evaluations/{username}/{timestamp}.jsonl - User-grouped for better privacy - Faster history queries - GDPR compliant (easy export/delete) Documentation: ADMIN_TOOLS.mdeb120a3 -
Fix: Ensure video display overwrite on regeneration
testcoder-uiProblem 1: Videos not overwritten when regenerating - Previous videos remained visible even after new generation - Users confused whether they're seeing old or new videos Problem 2: Partial success handling unclear - When some models fail, unclear which videos are new - Score sliders showed for all models regardless of success Solution: 1. Always update HTML content (success OR failure) - Success: Show video with green border and model name - Failure: Show warning message with orange border - Both cases explicitly set value, ensuring overwrite 2. Individual score slider visibility per model - Before: Used global has_results (all or nothing) - After: Each model's slider shows only if that model succeeded 3. Visual distinction with color-coded borders - Green (#4CAF50): Successful generation ✅ - Orange (#ff9800): Failed generation ⚠️ - Includes model name in display for clarity Benefits: - ✅ Every generation completely overwrites previous display - ✅ Clear vi…a9ea3b3 -
Fix: Replace gr.Video with HTML video tag to prevent freezing
testcoder-uiProblem: Video display was freezing/hanging the webpage even though API calls were successful Root Cause: Gradio Video component was trying to preload entire videos from CDN, causing hang Solution: Use HTML5 video tag with gr.HTML component instead: - Native browser video player (no preload issues) - More responsive and faster - Added download link and open in new tab options - Prevents Gradio from trying to cache/preload large video files Benefits: - ✅ No more webpage freezing - ✅ Instant video display with progressive loading - ✅ User can download or open videos in new tab - ✅ Works with CDN URLs without issues Testing: Verified HTML video tag renders correctly and plays smoothlyfb37db9 -
Fix: Auto-load user info on page load
testcoder-uiProblem: Users had to manually click refresh button to see their call counts Solution: Added demo.load() event to automatically call get_user_info() when page loads Testing: All features tested and verified: - ✅ Page auto-loads user info (no manual refresh needed) - ✅ History tab works correctly - ✅ Daily limit persistence to HF Dataset - ✅ All imports and syntax verified User experience improvement: Users now see their status immediately upon page loadc19d95e -
Add 3 major improvements:
testcoder-ui1. Fix frontend freeze - ensure proper gr.Request handling 2. Add temp file cleanup documentation (Gradio auto-cleans, S3 uses memory) 3. Add history tab - users can view their past generations Features: - New history tab with HTML display of user's past evaluations - get_user_history() method to fetch records from HF Dataset - Refresh button to load history on demand - Each history entry shows: timestamp, prompt, scores, video URLs - Updated README with new features Technical: - Fixed UI tab structure and indentation - Added get_history_html() function for rendering - History data fetched from evaluations/*.json files in Dataset - Limit to 10 most recent records85fe453 -
Fix all 4 issues with real testing:
testcoder-ui1. Sora 2 Pro: Add special handling for length (4/8/12) and resolution (720p/1080p) 2. Video display: Fix visible attribute update to show videos after generation 3. User info: Improve display with larger area and clear description 4. Daily limit: Implement call counting with HF Dataset persistence (free) - Add increment_user_calls() method - Store counts in call_counts/{date}/{username}.json - Count on video generation click (not on submit) All fixes tested and verified in real environment.f064405 -
Fix 4 issues with local testing:
testcoder-ui1. Correct Sora 2 Pro API path: openai/sora-2-pro -> sora/sora-2-pro 2. Add refresh button for user login status 3. Support text-to-video (t2v) mode without image input 4. Update UI hints (image is optional) All fixes tested and verified locally.e50512f -
Fix OAuth username extraction: access userinfo nested dict
testcoder-uiacecd04 -
Add detailed OAuth debugging: log oauth_info contents
testcoder-ui6d30548 -
Clean up OAuth: simplify username detection to use session only
testcoder-ui763d966 -
Fix OAuth: get username from Starlette Request session (tested and working)
testcoder-ui004d952 -
Fix all errors: add OAuth dependencies, fix event binding, and make LoginButton conditional
testcoder-ui486cfb1 -
Fix 'no backend method' error by removing problematic demo.load()
testcoder-ui0f3d3ab -
Fix asyncio error with nest-asyncio and fix S3Utils import
testcoder-uia851d89 -
Add LoginButton component for OAuth support
testcoder-uicbd8bf3 -
Fix asyncio error by disabling SSR mode
testcoder-uifbabe23 -
Fix OAuth login: improve username detection and fix Gradio 6.0 theme parameter
testcoder-ui979ef78 -
Write hardcode S3 and Dataset config values
testcoder-ui3e98433 -
Add S3 support and simplify README
testcoder-uid9add37 -
Initial commit: Add video model evaluator app with 4 models (Sora 2 pro, Seedance Pro, Veo 3.1, Kling 2.6)
testcoder-uid1c1f8f -
initial commit
Verified signaturee61f2bb