Spaces:
Sleeping
Sleeping
first_image = "https://www.nameslook.com/names/dfsadf-nameslook.png"
Browse files
app.py
CHANGED
@@ -534,7 +534,8 @@ def process_youtube_link(link):
|
|
534 |
summary = summary_json["summary"]
|
535 |
html_content = format_transcript_to_html(formatted_transcript)
|
536 |
simple_html_content = format_simple_transcript_to_html(formatted_simple_transcript)
|
537 |
-
first_image = formatted_transcript[0]['screenshot_path']
|
|
|
538 |
first_text = formatted_transcript[0]['text']
|
539 |
mind_map_json = get_mind_map(video_id, formatted_simple_transcript, source)
|
540 |
mind_map = mind_map_json["mind_map"]
|
@@ -624,7 +625,6 @@ def get_mind_map(video_id, df_string, source):
|
|
624 |
print("mind_map已存在于GCS中")
|
625 |
mind_map_text = download_blob_to_string(gcs_client, bucket_name, blob_name)
|
626 |
mind_map_json = json.loads(mind_map_text)
|
627 |
-
print(f"mind_map_json: {mind_map_json}")
|
628 |
|
629 |
elif source == "drive":
|
630 |
print("===get_mind_map on drive===")
|
|
|
534 |
summary = summary_json["summary"]
|
535 |
html_content = format_transcript_to_html(formatted_transcript)
|
536 |
simple_html_content = format_simple_transcript_to_html(formatted_simple_transcript)
|
537 |
+
# first_image = formatted_transcript[0]['screenshot_path']
|
538 |
+
first_image = "https://www.nameslook.com/names/dfsadf-nameslook.png"
|
539 |
first_text = formatted_transcript[0]['text']
|
540 |
mind_map_json = get_mind_map(video_id, formatted_simple_transcript, source)
|
541 |
mind_map = mind_map_json["mind_map"]
|
|
|
625 |
print("mind_map已存在于GCS中")
|
626 |
mind_map_text = download_blob_to_string(gcs_client, bucket_name, blob_name)
|
627 |
mind_map_json = json.loads(mind_map_text)
|
|
|
628 |
|
629 |
elif source == "drive":
|
630 |
print("===get_mind_map on drive===")
|