Commit History

update
c9bb5b3

youngtsai commited on

update
71df495

youngtsai commited on

update
eb776f5

youngtsai commited on

update
9fe5559

youngtsai commited on

update
a15a2f3

youngtsai commited on

update
323212d

youngtsai commited on

update
0af8b29

youngtsai commited on

update
5324cd6

youngtsai commited on

update
f4feb7d

youngtsai commited on

worksheet_edit_button = gr.Button("編輯", size="sm", variant="primary")
b326bfd

youngtsai commited on

with gr.Tab("教學備課"):
54486da

youngtsai commited on

'format': "bestvideo[height<=720][ext=mp4]",
a5c3e6a

youngtsai commited on

with yt_dlp.YoutubeDL(ydl_opts) as ydl:
ba2af2c

youngtsai commited on

vaitor_chatbot_select_btn
17fccaa

youngtsai commited on

refactor setup_chatbot_select_button
01462ec

youngtsai commited on

create_questions_btn.click(
c159b8a

youngtsai commited on

def chatbot_select(chatbot_name):
a579af6

youngtsai commited on

user_message += "/n (請一定要用繁體中文回答 zh-TW,並用台灣人的禮貌口語表達,回答時不要特別說明這是台灣人的語氣,不要提到「台灣腔」,不用提到「逐字稿」這個詞,用「內容」代替),回答時如果有用到數學式,請用數學符號代替純文字(Latex 用 $ 字號 render)"
ae1f4a3

youngtsai commited on

def chat_with_any_ai(ai_type, password, video_id, user_data, transcript_state, key_moments, user_message, chat_history, content_subject, content_grade, questions_answers_json, socratic_mode=False, thread_id=None, ai_name=None):
2f94953

youngtsai commited on

def chat(self, user_message, chat_history, socratic_mode=False, service_type='openai'):
78a1c85

youngtsai commited on

feedback_with_ai
38c9c0c

youngtsai commited on

socratic_mode_btn
b154ec3

youngtsai commited on

user_message = f"""transcription: {transcription}
3ed8987

youngtsai commited on

system_message = """你是專業的 LATEX 轉換師,擅長將數學符號、公式轉換成 LATEX 格式,並用 LATEX 符號 $...$ 包裹,ex: $x^2$
fa78f46

youngtsai commited on

也不要給出多餘的敘述
54c7397

youngtsai commited on

transcription: x的平方加 2x 加 1 等於 0
b40faf1

youngtsai commited on

請將 transcription 的數學、公式、運算式、化學式、物理 formula 內容轉換成 LATEX 格式
0d4173e

youngtsai commited on

system_message = "你是專業的 LATEX 轉換師,擅長將數學符號、公式轉換成 LATEX 格式"
dd78554

youngtsai commited on

CHAT_LIMIT = 10
a6f9c78

youngtsai commited on

question_message = ""
07ae1f3

youngtsai commited on

def get_video_duration(video_id):
2c1b15d

youngtsai commited on

handle_conversation_by_open_ai_assistant
6b24245

youngtsai commited on

refactor
ec27698

youngtsai commited on

def update_send_and_feedback_buttons(chat_history, chat_limit):
0d05167

youngtsai commited on

def process_open_ai_audio_to_chatbot(password, audio_url):
ee4d2fc

youngtsai commited on

feedback_with_opan_ai_assistant
dbca9d3

youngtsai commited on

update example
0bc16a8

youngtsai commited on

CHAT_LIMIT = 10
a80b33d

youngtsai commited on

with gr.Accordion("你也有類似的問題想問嗎? 請按下 ◀︎", open=False) as ask_questions_accordion:
1b0569d

youngtsai commited on

"socratic_mode": str(socratic_mode),
333f20d

youngtsai commited on

OPEN_AI_KEY_BOT2
f7acb92

youngtsai commited on

clean js
ade10fb

youngtsai commited on

moment['transcript'] = ",".join([entry['text'] for entry in formatted_simple_transcript
be2b49a

youngtsai commited on

video_length = get_video_duration(video_id)
ef7d9c3

youngtsai commited on

transcript = [entry for entry in transcript if entry['start'] <= video_length]
ad2572c

youngtsai commited on

video_length = get_video_duration(video_id)
e27706d

youngtsai commited on

transcript_list = YouTubeTranscriptApi.list_transcripts(video_id)
5e224d7

youngtsai commited on

<div class="arrow arrow-disabled arrow-prev"> ◀︎ </div>
84f245c

youngtsai commited on

# ALL CHATBOT SELECT LIST
7d5d897

youngtsai commited on

ai_name_update = gr.update(value="foxcat")
e2b5ef9

youngtsai commited on