Spaces:
Sleeping
Sleeping
for entry in trascript_json:
Browse files
app.py
CHANGED
@@ -1641,7 +1641,7 @@ def poll_run_status(run_id, thread_id, timeout=600, poll_interval=5):
|
|
1641 |
def chat_with_claude3(password, video_id, trascript, user_message, chat_history, content_subject, content_grade, socratic_mode=False):
|
1642 |
verify_password(password)
|
1643 |
trascript_json = json.loads(trascript)
|
1644 |
-
for entry in
|
1645 |
entry.pop('embed_url', None) # Remove 'embed_url' if it exists
|
1646 |
entry.pop('screenshot_path', None)
|
1647 |
trascript_text = json.dumps(trascript_json, ensure_ascii=False, indent=2)
|
|
|
1641 |
def chat_with_claude3(password, video_id, trascript, user_message, chat_history, content_subject, content_grade, socratic_mode=False):
|
1642 |
verify_password(password)
|
1643 |
trascript_json = json.loads(trascript)
|
1644 |
+
for entry in trascript_json:
|
1645 |
entry.pop('embed_url', None) # Remove 'embed_url' if it exists
|
1646 |
entry.pop('screenshot_path', None)
|
1647 |
trascript_text = json.dumps(trascript_json, ensure_ascii=False, indent=2)
|