mirror of
https://github.com/FAUSheppy/ths-speech
synced 2025-12-06 20:51:36 +01:00
lol
This commit is contained in:
@@ -50,9 +50,11 @@ def save_transcript(filename, transcript):
|
||||
f.write(transcript)
|
||||
|
||||
def get_transcript(filename):
|
||||
if os.path.isfile(filename):
|
||||
with open(filename + "_transcript","r") as f:
|
||||
return f.read()
|
||||
try:
|
||||
with open("data/" + filename + ".wav_transcript","r") as f:
|
||||
return f.read()
|
||||
except FileNotFoundError:
|
||||
return "File not found on Server!"
|
||||
|
||||
def filelist():
|
||||
return ""
|
||||
|
||||
Reference in New Issue
Block a user