Skip to content

Commit de066e3

Browse files
refactor(webui): refact gradio webui
1 parent 2911aeb commit de066e3

File tree

3 files changed

+188
-127
lines changed

3 files changed

+188
-127
lines changed

models/storage/json_storage.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ def __post_init__(self):
1414
self._data = load_json(self._file_name) or {}
1515
logger.info("Load KV %s with %d data", self.namespace, len(self._data))
1616

17+
@property
18+
def data(self):
19+
return self._data
20+
1721
async def all_keys(self) -> list[str]:
1822
return list(self._data.keys())
1923

0 commit comments

Comments
 (0)