Portfolio Details

Project information

AI Flashcard Generator

This program is a Streamlit web app that generates study flashcards from user-provided text using OpenAI’s chat model via LangChain. It loads an API key from environment variables, prompts the model to create three concise question-and-answer flashcards in a fixed format, extracts and formats the results using regex, and displays the sorted flashcards interactively in the app.