youngtsai commited on
Commit
2a642e6
·
1 Parent(s): ba6d23b

for entry in trascript_json:

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 data_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)
 
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)