import gradio as gr from auth_utils import get_user_greeting CHALLENGES = [ { "id": "object-localization", "title": "Object Localization", "emoji": "🎯", "description": "Detect and segment objects in images taken by blind photographers. Submit bounding box and instance segmentation predictions evaluated with pycocotools.", "metrics": "bbox_mAP · bbox_AP50 · segm_mAP · segm_AP50", "route": "/object-localization", "active": True, }, { "id": "vqa", "title": "Visual Question Answering", "emoji": "🤔", "description": "Answer open-ended questions about images taken by blind users. Models are evaluated on answer accuracy and relevance.", "metrics": "Coming soon", "route": "/vqa", "active": True, }, { "id": "answer-therapy", "title": "VQA Answer Therapy", "emoji": "📍", "description": "Predict whether a visual question produces answers that all share the same image region. Evaluated with F1, Precision, and Recall across VizWiz and VQAv2 subsets.", "metrics": "Overall F1 · VizWiz F1 · VQAv2 F1", "route": "/answer-therapy", "active": True, }, ] def _single_card_html(c: dict) -> str: if c["active"]: return f"""
{c['description']}
{c['description']}