Skip to content

Commit

Permalink
Version 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sdxsd committed Sep 21, 2023
1 parent cd55df1 commit 0951507
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
15 changes: 2 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,13 @@ echo 'export OPENAI_API_KEY="[insert your key here between the brackets]"' >> ~/
##### EXE:
Double click the Executable as with any other program.
##### Through Python:
To invoke the program in GUI mode, run the following command:
```
Windows: python3 .\SRT-gui.py
macOS/GNU + Linux: ./SRT-gui.py
```
With the GUI you can specify the output folder and the input subtitle file to be corrected.
When both are selected, simply click the "Process subtitle" button.
#### TUI
You can invoke the program in TUI mode as so:
```
Windows: python3 .\SRT-tui.py example.srt
macOS/GNU + Linux: ./SRT-tui.py example.srt
Windows: python3 .\SRT-tui.py example.srt --ofile example_output.srt
macOS/GNU + Linux: ./SRT-tui.py example.srt --ofile example_output.srt
```
The program will then query ChatGPT and write it's response to a new file called output.srt, which will be located in the output directory.
### Notes:
This program is still a WIP and thusly cannot be considered entirely ready for use. As to what needs to be worked on, I give the following:
- Splitting the input into multiple queries thus getting the output for the entire file.
- The production of a diff between the original and modified subtitles for easier error checking.

#### License:
This program is licensed under the GNU General Public License Version 3, and thus is Free Software.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

from setuptools import setup

# To create EXE for windows run "pyinstaller .\SRT-gui.py --windowed --onefile"
# To create EXE for windows:
# .\SRT-gui.py --onefile --hidden-import=tiktoken_ext.openai_public --hidden-import=tiktoken_ext --windowed

APP = ['SRT-gui.py']
DATA_FILES = []
Expand Down

0 comments on commit 0951507

Please sign in to comment.