Commit History

youtube_link_btn = gr.Button("Submit")
d476f89

youngtsai commited on

youtube_link_btn = gr.Button("Submit", id="youtube_link_btn")
094d768

youngtsai commited on

youtube_link_btn = gr.Button("Submit")
c352296

youngtsai commited on

https://www.youtube.com/watch?v=lYCugZj-d74&list=PLm778hWdXOZkrfV0px167qaUxvCZJLlzd&index=12
b512528

youngtsai commited on

with gr.Column(scale=4):
0eff37a

youngtsai commited on

youtube_link_btn.click(
28092cb

youngtsai commited on

print(dict(gr.Request().request.query_params))
e3633b7

youngtsai commited on

print(dict(gr.Request.query_params))
f890e74

youngtsai commited on

query_params
3831530

youngtsai commited on

print(gr.Request)
c42b6cd

youngtsai commited on

print(gr.Request.get_params("yt_id"))
f6a4cdc

youngtsai commited on

print(request.query_params)
2c6d5e9

youngtsai commited on

if "yt_id" in gr.args:
9de79a2

youngtsai commited on

gr.Markdown("## 請複製以下 markdown 並貼到你的心智圖工具中,建議使用:https://markmap.js.org/repl")
2d3b891

youngtsai commited on

embed_url = f"https://www.youtube.com/embed/{video_id}?start={int_start_time}&autoplay=1"
354502a

youngtsai commited on

mind_map = gr.Textbox(container=True, show_copy_button=True, lines=40)
600e121

youngtsai commited on

with gr.Blocks(head=HEAD) as demo:
9d36b77

youngtsai commited on

mind_map = response.choices[0].message.content.strip().replace("```markdown", "").replace("```", "")
1151c0f

youngtsai commited on

mind_map = gr.Textbox(container=True, show_copy_button=True, lines=40)
74a68f3

youngtsai commited on

with gr.Blocks(js=JS, css=CSS) as demo:
799a8f8

youngtsai commited on

with gr.Tab("心智圖"):
62b7350

youngtsai commited on

{mind_map_markdown}
afee61a

youngtsai commited on

def get_mind_map_html(mind_map):
dddad30

youngtsai commited on

"model": "gpt-4-turbo-preview",
65300ff

youngtsai commited on

def get_video_id_summary(video_id, df_string):
7c59179

youngtsai commited on

send_question delete
7115eb8

youngtsai commited on

print(socratic_mode)
f7129ff

youngtsai commited on

最後,在你回答的開頭標註【蘇格拉底助教】
8bcb25f

youngtsai commited on

summary_json = {"summary": str(summary)}
f066645

youngtsai commited on

socratic_mode_btn = gr.Checkbox(label="蘇格拉底家教助理模式", value=False)
b5c6a12

youngtsai commited on

def get_questions(video_id, df_string):
2b5e430

youngtsai commited on

if not video_id:
79fc5f8

youngtsai commited on

get_video_id
bedad3b

youngtsai commited on

def get_questions(video_id, df_string):
f4b5a4c

youngtsai commited on

# print(f"TRANSCRIPTS: {TRANSCRIPTS}")
05867f4

youngtsai commited on

upload_content_directly
d770843

youngtsai commited on

summary_json = { "summary": str(summary.replace("\n","|")) }
2546c90

youngtsai commited on

print("Uploaded %d%%." % (status.progress() * 100))
20cf22c

youngtsai commited on

summary_json = { "summary": str(summary) }
b1488d9

youngtsai commited on

with open(f'{OUTPUT_PATH}/{video_id}_summary.json', 'w') as f:
38a8c25

youngtsai commited on

with io.BytesIO(content.encode('utf-8')) as fh:
143b0eb

youngtsai commited on

processed_summary = { "summary": str(summary) }
06d6aec

youngtsai commited on