video_bot_999 / app.py

Commit History

simple_html_content = gr.HTML(label="Simple Transcript")
4bbcdbc

youngtsai commited on

# 当输入网页链接时触发
848a8d9

youngtsai commited on

with gr.Blocks() as demo:
c997d4e

youngtsai commited on

with gr.Blocks(head=HEAD) as demo:
15e1a1f

youngtsai commited on

with gr.Blocks() as demo:
27bd0db

youngtsai commited on

with gr.Tab("心智圖",elem_id="mind_map_tab"):
7ab5e1e

youngtsai commited on

mind_map = gr.Textbox(container=True, show_copy_button=True, lines=40, elem_id="mind_map_markdown")
369b716

youngtsai commited on

Submit_YouTube_Link
81040e3

youngtsai commited on

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