Skip to content

Commit

Permalink
Internal Change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 674437767
  • Loading branch information
cpka145 authored and LIT team committed Sep 13, 2024
1 parent f4436a2 commit 362cf16
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lit_nlp/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1018,6 +1018,13 @@ def __init__(
index_file='static/index.html',
)

def get_dataset_specs(self) -> dict[str, dict[str, str]]:
datasets_with_spec = collections.defaultdict(dict)
for name, ds in self._datasets.items():
for field_name, lit_data_class in ds.spec().items():
datasets_with_spec[name][field_name] = type(lit_data_class).__name__
return datasets_with_spec

def save_cache(self):
for m in self._models.values():
if isinstance(m, caching.CachingModelWrapper):
Expand Down

0 comments on commit 362cf16

Please sign in to comment.