brickfrog commited on
Commit
0ffe7cd
·
verified ·
1 Parent(s): 75775c4

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. README.md +14 -23
  2. example.png +0 -0
README.md CHANGED
@@ -17,13 +17,13 @@ AnkiGen is a Gradio-based web application that generates Anki-compatible CSV fil
17
  - Generate Anki cards for various subjects
18
  - Customizable number of topics and cards per topic
19
  - User-friendly interface powered by Gradio
20
- - Exports to CSV format compatible with Anki import
21
- - Utilizes LLMs for high-quality content generation
22
 
23
  ## TODO
24
 
25
- - [ ] model dropdown - uses gpt4o-mini by default
26
- - [ ] cloze (checkbox?)
27
 
28
  ## Screenshot
29
 
@@ -32,18 +32,21 @@ AnkiGen is a Gradio-based web application that generates Anki-compatible CSV fil
32
 
33
  ## Installation for Local Use
34
 
 
 
35
  1. Clone this repository:
36
 
37
- ```
38
  git clone https://github.com/brickfrog/ankigen.git
39
  cd ankigen
 
40
  ```
41
 
42
 
43
  2. Install the required dependencies:
44
 
45
- ```
46
- pip install -r requirements.txt
47
  ```
48
 
49
  3. Set up your OpenAI API key (required for LLM functionality).
@@ -52,8 +55,8 @@ pip install -r requirements.txt
52
 
53
  1. Run the application:
54
 
55
- ```
56
- gradio app.py --demo-name ankigen
57
  ```
58
 
59
  2. Open your web browser and navigate to the provided local URL (typically `http://127.0.0.1:7860`).
@@ -67,25 +70,13 @@ gradio app.py --demo-name ankigen
67
 
68
  4. Review the generated cards in the interface.
69
 
70
- 5. Click "Export to CSV" to download the Anki-compatible file.
71
-
72
- ## CSV Format
73
-
74
- The generated CSV file includes the following fields:
75
- - Index
76
- - Topic
77
- - Question
78
- - Answer
79
- - Explanation
80
- - Example
81
-
82
- You can create a new note type in Anki with these fields to handle importing.
83
 
84
  ## Development
85
 
86
  This project is built with:
87
  - Python 3.12
88
- - Gradio 4.44.0
89
 
90
  To contribute or modify:
91
  1. Make your changes in `app.py`
 
17
  - Generate Anki cards for various subjects
18
  - Customizable number of topics and cards per topic
19
  - User-friendly interface powered by Gradio
20
+ - Exports to CSV for manual import or .apkg format with out of the box css styling
21
+ - Utilizes OpenAI's structured output to mimic chain of thought to minimize hallucinations
22
 
23
  ## TODO
24
 
25
+ - [ ] cloze cards? (checkbox?)
26
+ - [ ] File upload / parsing longer texts / books as input?
27
 
28
  ## Screenshot
29
 
 
32
 
33
  ## Installation for Local Use
34
 
35
+ Preferred usage: [uv](https://github.com/astral-sh/uv)
36
+
37
  1. Clone this repository:
38
 
39
+ ```bash
40
  git clone https://github.com/brickfrog/ankigen.git
41
  cd ankigen
42
+ uv venv
43
  ```
44
 
45
 
46
  2. Install the required dependencies:
47
 
48
+ ```bash
49
+ uv pip install -r requirements.txt
50
  ```
51
 
52
  3. Set up your OpenAI API key (required for LLM functionality).
 
55
 
56
  1. Run the application:
57
 
58
+ ```bash
59
+ uv run gradio app.py --demo-name ankigen
60
  ```
61
 
62
  2. Open your web browser and navigate to the provided local URL (typically `http://127.0.0.1:7860`).
 
70
 
71
  4. Review the generated cards in the interface.
72
 
73
+ 5. Click "Export to CSV" to download the Anki-compatible file or Export to Anki Deck to export as a .apkg that can be imported into Anki.
 
 
 
 
 
 
 
 
 
 
 
 
74
 
75
  ## Development
76
 
77
  This project is built with:
78
  - Python 3.12
79
+ - Gradio 5.13.1
80
 
81
  To contribute or modify:
82
  1. Make your changes in `app.py`
example.png CHANGED