Skip to content

fix(display): render text-only dataset samples - #1765

Open
rudycelekli wants to merge 1 commit into
open-compass:mainfrom
rudycelekli:fix/text-only-dataset-display-20261013
Open

rudycelekli wants to merge 1 commit into
open-compass:mainfrom
rudycelekli:fix/text-only-dataset-display-20261013

Conversation

@rudycelekli

Copy link
Copy Markdown
Contributor

Text-only datasets are supported by CustomTextMCQDataset, but their inherited display method and the dataset browser renderer assume every row contains an image or image_path. Both raise KeyError for an ordinary text-only sample. Treat such samples as having no images so their index, question, choices, and answer can render.

Validation: exact shipping local TSV producer and display consumers reproduce two failures on the base. Five focused regressions/controls pass after the fix, including actual Pillow base64/image-file rendering and real IPython image display; seven existing image/GPT-budget neighbors also pass (12 total). All nine pinned pre-commit hooks pass on materialized source/metadata. The test harness executes exact original definitions to avoid unrelated optional model imports and the browser script's module-level API translator. No Gradio GUI, model/provider, GPU benchmark, accuracy, or hosted CI result claimed.

Signed-off-by: Rudy Celekli <rudy@gradiahq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant