Skip to content

Commit

Permalink
Internal Change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 597322685
  • Loading branch information
cpka145 authored and LIT team committed Jan 10, 2024
1 parent 1d511ba commit fb9ffba
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lit_nlp/client/modules/salience_map_module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ interface FeatureSalienceMap {
[feature: string]: number;
}

interface FeatureSalienceResult {
/**
* Results for calls to fetch salience for features.
*/
export interface FeatureSalienceResult {
[key: string]: {salience: FeatureSalienceMap};
}

Expand Down Expand Up @@ -665,7 +668,7 @@ export class SalienceMapModule extends LitModule {
// the label and the expander toggle.
// clang-format off
return html`
<div class='method-row'>
<div class='method-row' id='${name.toLowerCase()}'>
<expansion-panel .label=${name} ?expanded=${this.state[name].autorun}
.description=${description}
@expansion-toggle=${toggleAutorun}>
Expand All @@ -675,6 +678,8 @@ export class SalienceMapModule extends LitModule {
<div class='method-row-contents'>
<div class='method-results'>
${this.selectionService.primarySelectedInputData != null ?
// TODO(b/319297222) Modify element such that we render each
// feature in the feature salience module in a separate line.
salienceContent : html`
<span class='salience-placeholder'>
Select a datapoint to see ${name} attributions.
Expand Down

0 comments on commit fb9ffba

Please sign in to comment.