Skip to content

Commit

Permalink
Annotate new data points created from counterfactual generator before…
Browse files Browse the repository at this point in the history
… adding to the data table.

PiperOrigin-RevId: 579949562
  • Loading branch information
bdu91 authored and LIT team committed Nov 6, 2023
1 parent f254fa8 commit d4302bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lit_nlp/client/modules/generator_module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export class GeneratorModule extends LitModule {
}

private async createNewDatapoints(data: IndexedInput[][]) {
const newExamples = flatten(data);
const newExamples = await this.appState.annotateNewData(flatten(data));
this.appState.commitNewDatapoints(newExamples);
const newIds = newExamples.map(d => d.id);
if (newIds.length === 0) return;
Expand Down

0 comments on commit d4302bd

Please sign in to comment.