Commit History

, 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

教案
a716291

youngtsai commited on

reading_passage_text_to_latex
a3a9cc7

youngtsai commited on

with gr.Accordion("See Details", open=False) as see_details:
6d56ba4

youngtsai commited on

file_name = f'{video_id}_summary_markdown.json'
772ff1c

youngtsai commited on

for moment in key_moments_json:
a4ff7ed

youngtsai commited on

"is_streaming": "true",
338838e

youngtsai commited on

"is_streaming": False,
c7c6e6e

youngtsai commited on

client.beta.threads.update(
efef8af

youngtsai commited on

client.beta.threads.update(
664644e

youngtsai commited on

metadata={
66db718

youngtsai commited on

# assistant_id = "asst_sCA7F5opi2g7AvGnYeRfoSfT" #GPT 3.5 turbo
58dc64d

youngtsai commited on

assistant_id open ai
6b1394b

youngtsai commited on

parse_time
f91a6d2

youngtsai commited on

### 選擇題(請從四個選項中選出一個正確答案)
9636366

youngtsai commited on

output Markdown,example as below:
491851e

youngtsai commited on

- 遇到數學符號或是敘述請用 Latex 語法($...$),例如:$x^2$。
3d28d92

youngtsai commited on

盡量不要去改原本的文章
45b66f9

youngtsai commited on

def summary_add_markdown_version(video_id):
76215d7

youngtsai commited on

content=user_message + "/n 請嚴格遵循instructions,擔任一位蘇格拉底家教,絕對不要重複 user 的問句,請用引導的方式指引方向,請一定要用繁體中文回答 zh-TW,並用台灣人的禮貌口語表達,回答時不要特別說明這是台灣人的語氣,請在回答的最後標註【參考:(時):(分):(秒)】,(如果是反問學生,就只問一個問題,請幫助學生更好的理解資料,字數在100字以內,回答時請用數學符號代替文字(Latex 用 $ 字號 render, ex: $x^2$)"
fd5cb81

youngtsai commited on

content=user_message + "/n 請嚴格遵循instructions,擔任一位蘇格拉底家教,不要重複 user 的問句,用引導的方式指引方向,請一定要用繁體中文回答 zh-TW,並用台灣人的禮貌口語表達,回答時不要特別說明這是台灣人的語氣,請在回答的最後標註【參考:(時):(分):(秒)】,(如果是反問學生,就只問一個問題,請幫助學生更好的理解資料,字數在100字以內,回答時請用數學符號代替文字(Latex 用 $ 字號 render, ex: $x^2$)"
aac435a

youngtsai commited on

重點摘要(加上 Latex, 刪除關鍵時刻)
5280e70

youngtsai commited on

reading_passage = gr.Markdown(show_label=False, latex_delimiters = [{"left": "$", "right": "$", "display": False}])
68b32b8

youngtsai commited on

加減乘除、根號、次方等等的運算式口語也換成 LATEX 數學符號
9353146

youngtsai commited on

scroll_to_output=True
d2f855c

youngtsai commited on

scroll_to_output=True
64bdcd0

youngtsai commited on

jutor_chatbot_description = """Hi,我們是【梨梨、麥麥、狐狸貓】,\n
5b3372a

youngtsai commited on

jutor_chatbot_description = """Hi,我們是【梨梨、麥麥、狐狸貓】,
a4f82ac

youngtsai commited on

chatbot_description = """Hi,我是你的AI學伴【飛特精靈】,
ea68502

youngtsai commited on

🚀 我沒有預設問題、也沒有語音輸入,適合快問快答,一起練習問出好問題吧 \n
86f5176

youngtsai commited on

with gr.Accordion("選擇 AI 小精靈", open=True) as chatbot_select_accordion:
3016707

youngtsai commited on