socratic_mode_btn = gr.Checkbox(label="蘇格拉底家教助理模式", value=False) b5c6a12 youngtsai commited on Feb 14, 2024
summary_json = { "summary": str(summary.replace("\n","|")) } 2546c90 youngtsai commited on Feb 14, 2024
with open(f'{OUTPUT_PATH}/{video_id}_summary.json', 'w') as f: 38a8c25 youngtsai commited on Feb 13, 2024
# if chat_history is not none, append role, content to messages 57ecc14 youngtsai commited on Feb 13, 2024
user_content = f"請根據 {df_string} 生成三個問題,並用 JSON 格式返回 questions:[q1的敘述text, q2的敘述text, q3的敘述text]" 939f3b1 youngtsai commited on Feb 7, 2024
summary_text = json.dumps(summary_json, ensure_ascii=False, indent=2) c1d56d4 youngtsai commited on Feb 7, 2024