google-generativeai pypdf2 PyMuPDF gradio requests toml datasets flatdict APScheduler