push folder restructuring

This commit is contained in:
Gokul Mohanarangan
2023-07-10 20:13:58 +05:30
parent 4e32cfb1bd
commit acf0d9e9e2
5 changed files with 22 additions and 7 deletions

View File

@@ -137,10 +137,10 @@ def main():
for chunk in whisper_result["chunks"]:
transcript_text += chunk["text"]
with open("transcript_" + NOW.strftime("%m-%d-%Y_%H:%M:%S") + ".txt", "w") as transcript_file:
with open("./artefacts/transcript_" + NOW.strftime("%m-%d-%Y_%H:%M:%S") + ".txt", "w") as transcript_file:
transcript_file.write(transcript_text)
with open("transcript_with_timestamp_" + NOW.strftime("%m-%d-%Y_%H:%M:%S") + ".txt", "w") as transcript_file_timestamps:
with open("./artefacts/transcript_with_timestamp_" + NOW.strftime("%m-%d-%Y_%H:%M:%S") + ".txt", "w") as transcript_file_timestamps:
transcript_file_timestamps.write(str(whisper_result))