Test: ran the code and checked for ffmpeg functionality

This commit is contained in:
Orihara Izaya
2023-10-09 18:13:32 +02:00
parent dc2ee55c4a
commit df1a3c075b
5 changed files with 11 additions and 5 deletions
+20
View File
@@ -0,0 +1,20 @@
import os
from src.transcript_generator import TranscriptGenerator
def main():
# input could be a YouTube link or a local file
input_sources = ["https://www.youtube.com/watch?v=BVVo1BaL6JA"]
hf_token = os.environ.get("HF_TOKEN")
if not hf_token:
hf_token = input("Please enter your HF_TOKEN: ")
os.environ["HF_TOKEN"] = hf_token
transcript_generator = TranscriptGenerator()
transcript_generator.generate(input_sources)
if __name__ == "__main__":
main()