import os html_path = 'e:/Deepfake/deepfake_detector/templates/index.html' with open(html_path, 'r', encoding='utf-8') as f: content = f.read() # Find where jA is used: E.jsx(jA, {onUpload: ...}) idx = content.find('jsx(jA') if idx != -1: print(f"Found 'jsx(jA' at {idx}") print(f"Context: {content[idx:idx+200]}") else: print("jsx(jA not found")