Commit History

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

displayDiv.style.display = 'none';
0ee794c

youngtsai commited on

scroll_to_output=True
269bb11

youngtsai commited on

lili_avatar_images = gr.State([user_avatar, lili_chatbot_avatar_url])
2ac9392

youngtsai commited on

foxcat_chatbot_avatar_url
930c56c

youngtsai commited on

def _build_user_content(self):
fa91b0f

youngtsai commited on

_build_fine_tune_user_content
1df8af0

youngtsai commited on

class EducationalMaterial:
ab39161

youngtsai commited on

with gr.Column(scale=1, variant="panel", visible=False):
7b950cb

youngtsai commited on

def setup_education_buttons(buttons_config):
f3fe998

youngtsai commited on

setup_content_buttons(content_buttons_config)
2685d2a

youngtsai commited on

def setup_question_button_click(button, inputs_list, outputs_list, chat_func, scroll_to_output=True):
7dbd265

youngtsai commited on

def setup_question_button_click(button, question_btn, chatbot, chat_func):
9774a8c

youngtsai commited on

claude-3 instead of open AI
3a57f39

youngtsai commited on

GCS_SERVICE refactor
d9efade

youngtsai commited on

GCS_SERVICE refactor
68393b8

youngtsai commited on

def delete_blob(self, bucket_name, blob_name):
910748f

youngtsai commited on

questions_answers # REDROCK_CLIENT
357dba3

youngtsai commited on

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

youngtsai commited on

, visible=False
a652e8c

youngtsai commited on

# with gr.Tab("教學備課"):
5edf28f

youngtsai commited on

AI card visible false
9cfc16e

youngtsai commited on

if not is_questions_answers_exists:
792abb3

youngtsai commited on

if True:
2e4398b

youngtsai commited on

for qa in questions_answers_json:
e82ac96

youngtsai commited on

questions_answers = generate_questions_answers(df_string)
3e2f38e

youngtsai commited on

if True:
9089b62

youngtsai commited on

def generate_questions_answers(df_string):
69f0d33

youngtsai commited on

chatbot_open_ai_streaming_select_btn.click(
a38ffdf

youngtsai commited on

def generate_questions_answers(df_string):
b1a24f7

youngtsai commited on

Assistant Role: you are a {content_subject} assistant. you can call yourself as {content_subject} 學伴
ac3e380

youngtsai commited on

Assistant Role: you are a {content_subject} assistant. you can call yourself as {content_subject} "學伴"
98c28b8

youngtsai commited on

Assistant Role: you are a {content_subject} assistant.
35b87c5

youngtsai commited on

- 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

## 🌟 主題:{{title}} (如果沒有 title 就省略)
9f0e11f

youngtsai commited on