From 0158989a934c286d9475921ec06a92062f316196 Mon Sep 17 00:00:00 2001 From: kchro3 Date: Thu, 18 May 2023 14:31:48 -0700 Subject: [PATCH] Addresses: Add a module level docstring to main.py --- main.py | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) diff --git a/main.py b/main.py index c3da0ed..e69de29 100644 --- a/main.py +++ b/main.py @@ -1,46 +0,0 @@ -import os - -import fire -import openai -import whisper - -from recorder import Recorder -from summarizer import Summarizer -from transcriber import Transcriber - -openai.api_key = os.getenv("OPENAI_API") - -model = whisper.load_model("base") - -recorder = Recorder() -transcriber = Transcriber() - - -def main( - config_file="config.yml", - debug=False -): - try: - while True: - filename = recorder.record() - - if debug: - recorder.playback(filename) - - s2text = transcriber.transcribe(filename) - print(s2text) - - summarizer = Summarizer.from_config(config_file) - print(summarizer.summarize(s2text)) - - print() - print("#" * 80) - input("press any key to try again, ctrl-D to exit") - print("#" * 80) - print() - except KeyboardInterrupt: - print("exiting...") - - -if __name__ == '__main__': - fire.Fire(main)