def process_open_ai_audio_to_chatbot(password, audio_url): ee4d2fc youngtsai commited on Apr 23, 2024
with gr.Accordion("你也有類似的問題想問嗎? 請按下 ◀︎", open=False) as ask_questions_accordion: 1b0569d youngtsai commited on Apr 23, 2024
moment['transcript'] = ",".join([entry['text'] for entry in formatted_simple_transcript be2b49a youngtsai commited on Apr 22, 2024
transcript = [entry for entry in transcript if entry['start'] <= video_length] ad2572c youngtsai commited on Apr 22, 2024
transcript_list = YouTubeTranscriptApi.list_transcripts(video_id) 5e224d7 youngtsai commited on Apr 22, 2024
lili_avatar_images = gr.State([user_avatar, lili_chatbot_avatar_url]) 2ac9392 youngtsai commited on Apr 21, 2024
def setup_question_button_click(button, inputs_list, outputs_list, chat_func, scroll_to_output=True): 7dbd265 youngtsai commited on Apr 20, 2024
def setup_question_button_click(button, question_btn, chatbot, chat_func): 9774a8c youngtsai commited on Apr 20, 2024
user_message += "/n (請一定要用繁體中文回答 zh-TW,並用台灣人的禮貌口語表達,回答時不要特別說明這是台灣人的語氣,不用提到「逐字稿」這個詞,用「內容」代替),回答時如果有用到數學式,請用數學符號代替純文字(Latex 用 $ 字號 render)" a6f92d7 youngtsai commited on Apr 20, 2024
Assistant Role: you are a {content_subject} assistant. you can call yourself as {content_subject} 學伴 ac3e380 youngtsai commited on Apr 18, 2024
Assistant Role: you are a {content_subject} assistant. you can call yourself as {content_subject} "學伴" 98c28b8 youngtsai commited on Apr 18, 2024
- if user say hi or hello or any greeting, just say hi back and introduce yourself. Then ask user to ask question in context. 201222d youngtsai commited on Apr 18, 2024