1
0
mirror of https://github.com/malarinv/jasper-asr.git synced 2026-03-09 19:02:35 +00:00

1. add a new streamlit ui to preview manifest

2. implement rpcy transcription client for files
This commit is contained in:
2020-08-07 12:00:33 +05:30
parent ae5586be72
commit fa89775f86
3 changed files with 93 additions and 0 deletions

View File

@@ -225,6 +225,12 @@ class ExtendedPath(type(Path())):
with self.open("r") as jf:
return json.load(jf)
def read_jsonl(self):
print(f"reading jsonl from {self}")
with self.open("r") as jf:
for l in jf.readlines():
yield json.loads(l)
def write_json(self, data):
print(f"writing json to {self}")
self.parent.mkdir(parents=True, exist_ok=True)