Skip to content

bitalov/GPTAnki

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GPTAnki

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.

Table of Contents

Requirements

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.txt

The requirements.txt file should contain the following:

streamlit
PyPDF2
openai

Setup

  1. Clone the repository:
git clone https://github.com/username/GPTAnki.git
  1. Navigate to the project directory:
cd GPTAnki
  1. Install the required Python libraries:
pip install -r requirements.txt
  1. Run the Streamlit app:
streamlit run AnkiGPT.py

The application should now be running on your local machine at http://localhost:8501/.

Deployment

To deploy the application, you can use a platform like Render. Follow these steps:

  1. Create an account on Render and sign in.
  2. Click on the "New" button in the dashboard and choose "Web Service".
  3. Connect your GitHub account and select the GPTAnki repository.
  4. In the "Environment" section, choose "Python" and set the "Build command" to:
pip install -r requirements.txt
  1. Set the "Start command" to:
streamlit run AnkiGPT.py
  1. Click on the "Create Web Service" button to deploy the application.

The application should now be deployed and accessible via the provided URL.

Try it Online

You can try the GPTAnki application online by visiting the following link:

https://gptanki.onrender.com/

Releases

No releases published

Packages

No packages published

Languages