@@ -47,12 +47,12 @@ def create_models(self):
47
47
def LLM_summarizer (self , llm_summary , llm_keywords , transcript , chunk_size , chunk_overlap , key ):
48
48
text_splitter = RecursiveCharacterTextSplitter (chunk_size = chunk_size , chunk_overlap = chunk_overlap )
49
49
texts = text_splitter .create_documents ([transcript ])
50
- map_summary_template = open ('prompt/chunks_summary_prompt.txt' ).readlines ()
50
+ map_summary_template = open ('cncf-youtube-channel-summarizer/ prompt/chunks_summary_prompt.txt' ).readlines ()
51
51
map_summary_template = '' .join (map_summary_template )
52
- combine_summary_template = open ('prompt/combine_summary_prompt.txt' ).readlines ()
52
+ combine_summary_template = open ('cncf-youtube-channel-summarizer/ prompt/combine_summary_prompt.txt' ).readlines ()
53
53
combine_summary_template = '' .join (combine_summary_template )
54
54
55
- keyword_template = open ('prompt/keyword_template.txt' ).readlines ()
55
+ keyword_template = open ('cncf-youtube-channel-summarizer/ prompt/keyword_template.txt' ).readlines ()
56
56
keyword_template = '' .join (keyword_template )
57
57
58
58
map_prompt = PromptTemplate (template = map_summary_template , input_variables = ["text" ])
@@ -85,8 +85,7 @@ def run(self):
85
85
logger .error (f"{ e } " )
86
86
missed_video_id = open ('cncf-youtube-channel-summarizer/data/missed_video_id.txt' , 'a' )
87
87
missed_video_id .write (key + ',' )
88
- #continue
89
- break
88
+ continue
90
89
91
90
data = {'video_id' : [key ], 'video_title' : [self .videos_dict [key ]['video_title' ]],
92
91
'conference_name' : [self .videos_dict [key ]['play_list' ]['title' ]], 'summary' : [summary ],
0 commit comments