Spaces:
Sleeping
Sleeping
get_video_id_summary
Browse files
app.py
CHANGED
@@ -318,7 +318,8 @@ def process_youtube_link(link):
|
|
318 |
TRANSCRIPTS = formatted_transcript
|
319 |
|
320 |
# ๅบไบ้ๅญ็จฟ็ๆๅ
ถไปๆ้็่พๅบ
|
321 |
-
questions = generate_questions(formatted_simple_transcript)
|
|
|
322 |
formatted_transcript_json = json.dumps(formatted_transcript, ensure_ascii=False, indent=2)
|
323 |
summary_json = get_video_id_summary(video_id, formatted_simple_transcript)
|
324 |
summary = summary_json["summary"]
|
@@ -439,9 +440,6 @@ def generate_summarise(df_string):
|
|
439 |
{"role": "system", "content": sys_content},
|
440 |
{"role": "user", "content": user_content}
|
441 |
]
|
442 |
-
print("=====messages=====")
|
443 |
-
print(messages)
|
444 |
-
print("=====messages=====")
|
445 |
|
446 |
request_payload = {
|
447 |
"model": "gpt-4-1106-preview",
|
|
|
318 |
TRANSCRIPTS = formatted_transcript
|
319 |
|
320 |
# ๅบไบ้ๅญ็จฟ็ๆๅ
ถไปๆ้็่พๅบ
|
321 |
+
# questions = generate_questions(formatted_simple_transcript)
|
322 |
+
questions = ["", "", ""]
|
323 |
formatted_transcript_json = json.dumps(formatted_transcript, ensure_ascii=False, indent=2)
|
324 |
summary_json = get_video_id_summary(video_id, formatted_simple_transcript)
|
325 |
summary = summary_json["summary"]
|
|
|
440 |
{"role": "system", "content": sys_content},
|
441 |
{"role": "user", "content": user_content}
|
442 |
]
|
|
|
|
|
|
|
443 |
|
444 |
request_payload = {
|
445 |
"model": "gpt-4-1106-preview",
|