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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user