mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
add file flush
This commit is contained in:
parent
4f5b9354d0
commit
7695f2b141
@ -57,6 +57,7 @@ class DatadirWriter:
|
||||
|
||||
self.keys.add(key)
|
||||
self.fd.write(f"{key} {value}\n")
|
||||
self.fd.flush()
|
||||
|
||||
def __exit__(self, exc_type, exc_val, exc_tb):
|
||||
self.close()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user