Unlock the power of your PDFs with AI-driven learning! This web application transforms your documents into interactive flashcards and explanations using Claude AI, perfect for importing into ANKI. Ideal for students, researchers, and lifelong learners looking to supercharge their study sessions and spaced repetition practice.
Featured Project: 🤗 PDF with Flashcard Generation - a Hugging Face Space by quocdat25
- 📚 Upload and view PDFs directly in your browser
- 🤖 Generate flashcards and explanations with Claude AI
- 🖍️ Highlight important text for focused learning
- 💾 Save and export your flashcard collections to ANKI-compatible format
- 📱 Responsive design for desktop and mobile use
- 🔄 Seamless integration with ANKI for optimized spaced repetition
Dive into your documents, emerge with knowledge at your fingertips, and supercharge your ANKI decks!
- Python 3.7+
- Flask
- Anthropic API key
-
Clone the repository:
git clone https://github.com/quocdat-le-insacvl/pdf-flashcards-autogen.git cd pdf-flashcards-autogen
-
Install the required packages:
pip install -r requirements.txt
-
Set up your Anthropic API key:
- Sign up for an API key at https://www.anthropic.com
- Add your API key to the application when prompted
-
Start the Flask server:
python app.py
-
Open your web browser and navigate to
http://localhost:5000
- Upload a PDF file using the file input at the top of the page
- Navigate through the PDF using the page controls or by scrolling
- Select text in the PDF viewer
- Click "Generate Flashcard" to create flashcards from the selected text
- View, remove, or export generated flashcards
- Use the highlight mode to mark important text in the PDF
Contributions are welcome! Please feel free to submit a Pull Request. For discussing improvements or new features, we encourage you to open an Issue first to facilitate community discussion.
This project is licensed under the MIT License - see the LICENSE file for details.