df_string_output = json.dumps(transcript, ensure_ascii=False, indent=2) a9eaf66 youngtsai commited on Feb 4, 2024
screenshot_path = f"https://drive.google.com/thumbnail?id={img_file_id}&sz=s4000" ae88c8d youngtsai commited on Feb 4, 2024
img_src = f"https://drive.google.com/thumbnail?id={img_file_id}&sz=s4000" 5408edf youngtsai commited on Feb 4, 2024
screenshot_path = screenshot_youtube_video(video_id, entry['start']) d346e8c youngtsai commited on Feb 4, 2024
upload_img_directly(service, file_name, folder_id, screenshot_path) a028c47 youngtsai commited on Feb 4, 2024
transcript_text = json.dumps(transcript, ensure_ascii=False, indent=2) 474b2c8 youngtsai commited on Feb 4, 2024
def upload_to_drive(service, file_name, folder_id, content): 02dd3ba youngtsai commited on Feb 4, 2024
def upload_to_drive(service, file_name, folder_id, content): 2fd09c9 youngtsai commited on Feb 4, 2024
folder_id = create_folder_if_not_exists(service, video_id, parent_folder_id) 7ed5900 youngtsai commited on Feb 4, 2024
screenshot_path = f'{OUTPUT_PATH}/{youtube_id}_{snapshot_sec}.jpg' db681b1 youngtsai commited on Jan 26, 2024
html_content += f"<img src='{entry['screenshot_path']}' width='500px' />" 6a6dfe0 youngtsai commited on Jan 26, 2024
html_content = format_transcript_to_html(formatted_transcript) a6ad75a youngtsai commited on Jan 19, 2024
line = f"---- 時間: {start_time} ~ {end_time} ----\n{entry['text']}\n\n" ae369e8 youngtsai commited on Jan 17, 2024