GPTAnki is a simple web application that uses OpenAI's GPT-3.5 or GPT-4 to generate Anki flashcards from a given PDF file. The application uses Streamlit for the frontend and PyPDF2 for PDF text extraction.
To set up the environment for GPTAnki, you'll need to install the required Python libraries. You can do this by running the following command:
pip install -r requirements.txtThe requirements.txt file should contain the following:
streamlit PyPDF2 openai - Clone the repository:
git clone https://github.com/username/GPTAnki.git- Navigate to the project directory:
cd GPTAnki- Install the required Python libraries:
pip install -r requirements.txt- Run the Streamlit app:
streamlit run AnkiGPT.pyThe application should now be running on your local machine at http://localhost:8501/.
To deploy the application, you can use a platform like Render. Follow these steps:
- Create an account on Render and sign in.
- Click on the "New" button in the dashboard and choose "Web Service".
- Connect your GitHub account and select the GPTAnki repository.
- In the "Environment" section, choose "Python" and set the "Build command" to:
pip install -r requirements.txt- Set the "Start command" to:
streamlit run AnkiGPT.py- Click on the "Create Web Service" button to deploy the application.
The application should now be deployed and accessible via the provided URL.
You can try the GPTAnki application online by visiting the following link: