Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions services/rows/src/rows/routes/rows.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"halabi2016/arabic_speech_corpus"
] # for testing

EXCLUDED_COLUMNS = {"vae_latents", "t5_prompt_embeds"}

def create_rows_endpoint(
cached_assets_storage_client: StorageClient,
Expand Down Expand Up @@ -106,6 +107,7 @@ async def rows_endpoint(request: Request) -> Response:
except TooBigRows as err:
raise TooBigContentError(str(err)) from None
with StepProfiler(method="rows_endpoint", step="transform to a list"):
pa_table = pa_table.drop([col for col in pa_table.column_names if col in EXCLUDED_COLUMNS])
response = await create_response(
dataset=dataset,
revision=revision,
Expand Down