Skip to content

Commit 4867fbb

Browse files
committed
improve readme more
1 parent 3f440c3 commit 4867fbb

File tree

2 files changed

+68
-45
lines changed

2 files changed

+68
-45
lines changed

README.md

Lines changed: 68 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
- Outputs into a clean .cha file by utterance.
55
- As always, TRUST NOTHING GENERATED BY AI, and always verify
66

7-
## Requirements:
8-
_If you already have the requirement read through the step to make sure you have it configured properly_
7+
## Installation:
98
1. **Internet**
109
- For installation of the transcriber
1110
- For the AI model download - on the first time you use a model
@@ -91,6 +90,11 @@ _If you already have the requirement read through the step to make sure you have
9190
`python --version`
9291

9392

93+
1. If on windows and did not select the `"enable symbolic links"` option when installing **GIT**, do the following:
94+
- Enable symbolic links on your machine.
95+
- Open the Local group policy editor and add your account user to the following:
96+
![Follow these steps](docs/readme_add_symlinks.png)
97+
9498
1. **The Transcriber**:
9599
- Now that you have all of the requirements installed we will install the Transcriber from git
96100
1. Open your choice terminal window
@@ -112,50 +116,52 @@ _If you already have the requirement read through the step to make sure you have
112116
- MacOS/Linux
113117
- `source ./.venv/bin/activate`
114118

115-
1. Continue with the [installation process](#how-to-install) steps below
116-
117-
1. If on windows and did not select the `"enable symbolic links"` option when installing **GIT**, do the following:
118-
- Enable symbolic links on your machine.
119-
- Open the Local group policy editor and add your account user to the following:
120-
![Follow these steps](docs/readme_add_symlinks.png)
121-
119+
1. <a id="pip install"></a>`pip install -r requirements.txt`
120+
- if the pip install fails try `pip install -r explicit_requirements.txt --no-cache`
121+
- if that fails, [report the issue to the maintainer or your point of contact](https://github.com/Noah-Jaffe/Transcriber/issues)
122+
- The only requirements not in the txt files are `torch` `torchaudio` and `torchvision`
123+
1. Install requirements not in requirements.txt
124+
125+
- If you have a CUDA compatible GPU:
126+
- [Install CUDA](https://docs.nvidia.com/cuda/cuda-quick-start-guide/) if you have not done so already.
127+
- You may need to `pip uninstall torch torchaudio torchvision` before doing this next step.
128+
- [Reinstall `torch` `torchaudio` and `torchvision` with your appropriate build](https://pytorch.org/get-started/locally/)
129+
- Example for if you have a CUDA compatible device for 12.6 you would run: `pip install torch torchvision torchaudio --no-cache -U --index-url https://download.pytorch.org/whl/cu126`
130+
- Otherwise if you dont have a CUDA compatible GPU or dont know what that means then run the next line:
131+
- `pip install torch torchaudio torchvision`
132+
1. Put your [Huggingface token](https://huggingface.co/docs/hub/en/security-tokens) in a file named `.hftoken`.
133+
- `.hftoken` only, `.hftoken.txt` will not work
134+
![Your directory should look something like this](docs/hftoken.png)
135+
- Generating the token:
136+
- You may need to create an account, you can skip all the optional steps except for verifying your email.
137+
- You can name the token anything, just save the token to a file called `.hftoken` to your machine.
138+
- The token does not need any special permissions, you can deselect all of the options.
139+
140+
1. If you want to make a one click startup script, you could do so now.
141+
- Example for windows:
142+
Save anywhere as "`Transcribe.ps1`"
143+
```sh
144+
cd ~/Documents/Transcriber
145+
# if you used a virtual environment uncomment the next line (remove the #)
146+
#./venv/Scripts/activate
147+
python main.py
148+
```
149+
- Example for Mac/Linux
150+
Save anywhere as "`Transcribe.sh`"
151+
```
152+
#!/bin/bash
153+
cd ~/Documents/Transcriber
154+
# if you used a virtual environment uncomment the next line (remove the #)
155+
# source .venv/bin/activate
156+
python main.py
157+
```
158+
_You may need to run `chmod +x Transcriber.sh` on the new .sh file to give it permissions to execute_
159+
- _NOTE: You might need to do some additional research for how to do this properly for your machine._
160+
1. Continue to the [using the transcriber](#using-the-transcriber) step.
161+
122162
---
123-
# How to install:
124-
1. Install requirements
125-
1. <a id="pip install"></a>`pip install -r requirements.txt`
126-
- if the pip install fails try `pip install -r explicit_requirements.txt --no-cache`
127-
- if that fails, [report the issue to the maintainer or your point of contact](https://github.com/Noah-Jaffe/Transcriber/issues)
128-
- The only requirements not in the txt files are `torch` `torchaudio` and `torchvision`
129-
1. If you have a CUDA compatible GPU:
130-
- [Install CUDA](https://docs.nvidia.com/cuda/cuda-quick-start-guide/) if you have not done so already.
131-
- You may need to `pip uninstall torch torchaudio torchvision` before doing this next step.
132-
- [Reinstall `torch` `torchaudio` and `torchvision` with your appropriate build](https://pytorch.org/get-started/locally/)
133-
- Example for if you have a CUDA compatible device for 12.6 you would run: `pip install torch torchvision torchaudio --no-cache -U --index-url https://download.pytorch.org/whl/cu126`
134-
1. Otherwise if you dont have a CUDA compatible GPU or dont know what that means then run the next line:
135-
- `pip install torch torchaudio torchvision`
136-
1. Put your [Huggingface token](https://huggingface.co/docs/hub/en/security-tokens) in a file named `.hftoken`. (Note that when you generate the token, you can name it anything and it does not need any special permissions, you can deselect all of the options.)
137-
1. If you want to make a one click startup script, you could do so now.
138-
- Example for windows:
139-
Save anywhere as "`Transcribe.ps1`"
140-
```sh
141-
cd ~/Documents/Transcriber
142-
# if you used a virtual environment uncomment the next line (remove the #)
143-
#./venv/Scripts/activate
144-
python main.py
145-
```
146-
- Example for Mac/Linux
147-
Save anywhere as "`Transcribe.sh`"
148-
```
149-
#!/bin/bash
150-
cd ~/Documents/Transcriber
151-
# if you used a virtual environment uncomment the next line (remove the #)
152-
# source .venv/bin/activate
153-
python main.py
154-
```
155-
_You may need to run `chmod +x Transcriber.sh` on the new .sh file to give it permissions to execute_
156-
1. Continue with [using the Transcriber](#using-the-transcriber)
157-
158-
# Using the transcriber
163+
164+
## Using the transcriber
159165
1. Start the application
160166
- If using a virtual environment start/activate that now. [See here](#start-activate-venv)
161167
- Run the program with
@@ -173,7 +179,9 @@ _If you already have the requirement read through the step to make sure you have
173179

174180

175181
# Frequently asked questions:
182+
176183
### Help, I got a `TypeError: ... not supported between instances of 'NoneType' and 'float'`!
184+
177185
If you run into the following errors specifically in the Whisper (Step 1), know that this is an error of the AI and not entirely in our control.
178186
> `TypeError: '<=' not supported between instances of 'NoneType' and 'float'`
179187

@@ -184,6 +192,7 @@ The only known current workaround is to split up the original file into smaller
184192
_v1.1.0_ is in the works with an automated fix for this
185193

186194
### How to update my Transcriber app?
195+
187196
If you followed the instructions on this readme file, or installed this repo with git:
188197
1. Enter the Transcriber directory in the terminal
189198
`cd Transcriber` or `cd ~/Documents/Transcriber`
@@ -195,13 +204,15 @@ If you followed the instructions on this readme file, or installed this repo wit
195204
- [Optional] Check the readme, changelog, or release notes to see if there is anything else you need to change.
196205

197206
### Help, some error occured that is not covered elsewhere!
207+
198208
- Send as much relevant info to the maintainer such as:
199209
- [ ] the terminal logs
200210
- [ ] screenshots of what is wrong
201211
- [ ] explinations for what was expected to happen
202212
- [ ] .cha file (you can remove sensitive information from the transcripts, but leave the @debug lines)
203213

204214
### How do I get rid of these ugly @debug lines in my .cha file?
215+
205216
Edit your [transcribe_proc.py](transcribe_proc.py) file to update that the line that is
206217
`DEBUG_MODE = True`
207218
to
@@ -211,7 +222,19 @@ to
211222

212223
See function `transcribe_file` in [transcribe_proc.py](transcribe_proc.py). Note that you can ignore the chunks that reference or are dependant on DEBUG.
213224

225+
### Yall got some Morphosyntax?
226+
In function `transcribe_file` in [transcribe_proc.py](transcribe_proc.py):
227+
Uncomment the line inside the `pipeline_activity` variable array:
228+
```
229+
# morphosyntax,
230+
```
231+
so that it looks like
232+
```
233+
morphosyntax,
234+
```
235+
214236
---
237+
215238
### Backlog ideas:
216239
- [ ] Advanced/Runtime configuration of AI parameters?
217240
- [ ] multiple times or using different models?

docs/hftoken.png

14.4 KB
Loading

0 commit comments

Comments
 (0)