-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e1160b2
commit b1b62a3
Showing
273 changed files
with
54,789 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,45 @@ | ||
# TransVisio | ||
# **TransVisio** | ||
![alt text](image.png) | ||
|
||
## **💡What does it do?** | ||
**TransVisio** provides translations for multiple languages using Large Language Models (LLMs). It takes inputs in various formats (e.g., subtitle file or a video) and it extracts the text | ||
|
||
## **Models Supported** | ||
|
||
- **GPT 4o** | ||
- **GPT 4 Turbo** | ||
- **GPT 4** | ||
- **GPT 3 Turbo** | ||
- **Gemini 1.5 Pro** | ||
- **Gemini 1.5 Flash** | ||
- **Gemini 1.0 Pro** | ||
- **Whisper 20231117** | ||
## **Features** | ||
|
||
- Inputs supported: </br> | ||
Subtitle files (*.srt *.ass *.ssa). </br> | ||
Video files (*.mp4 *.mkv *.webm *.flv *.avi *.mov *.wmv *.m4v). </br> | ||
Audio files (*.wav *.ogg *.mp3 *.aac *.flac *.m4a *.oga *.opus). </br> | ||
Excel files (*.xls *.xlsx *.csv). </br> | ||
|
||
- You can specify the number of **input sentences**. | ||
|
||
- You can **pause/resume** translation at any point. | ||
|
||
- You can reverse the direction of the translated output. | ||
|
||
- You can **remove** and/or **edit** the translated output and the input. The tool will automatically align the rows. | ||
|
||
- Ability to specify **Start Time** and **Duration** for video/audio inputs. | ||
|
||
- Provides a **Temperature** setting, which Controls the randomness of the model’s output. A lower value makes the output more deterministic and focused, while a higher value makes the output more diverse and creative. | ||
|
||
- Light and Dark themes. | ||
|
||
> Note: Make sure that you specify the API key for Whisper along with the **Start Time** and **Duration** before selecting the video/audio input. | ||
## **Demo** | ||
|
||
## **Disclaimer** | ||
**TransVisio** is part of a collaborative research funded by the Abdul Hameed Shoman Foundation (Agreement Number: 230800351). | ||
Hosting Institution: The project is hosted by the English Language and Translation Department at the Applied Science Private University.</br> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
; Script generated by the Inno Setup Script Wizard. | ||
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! | ||
|
||
#define MyAppName "TransVisio" | ||
#define MyAppVersion "1.0.0" | ||
#define MyAppExeName "TransVisio.exe" | ||
#define MyAppAssocName MyAppName + " File" | ||
#define MyAppAssocExt ".myp" | ||
#define MyAppAssocKey StringChange(MyAppAssocName, " ", "") + MyAppAssocExt | ||
|
||
[Setup] | ||
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications. | ||
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.) | ||
AppId={{DF428DA0-9FF7-4358-A0BA-FA4847DD361B} | ||
AppName={#MyAppName} | ||
AppVersion={#MyAppVersion} | ||
AppVerName={#MyAppName} {#MyAppVersion} | ||
DefaultDirName={autopf}\{#MyAppName} | ||
|
||
; Specifies that Setup cannot run on anything but x64 and Windows 11 on Arm. | ||
ArchitecturesAllowed=x64compatible | ||
|
||
; Requests that the install be done in "64-bit mode" on x64 or Windows 11 on Arm, | ||
; meaning it should use the native 64-bit Program Files directory and | ||
; the 64-bit view of the registry. | ||
ArchitecturesInstallIn64BitMode=x64compatible | ||
|
||
ChangesAssociations=yes | ||
DisableProgramGroupPage=yes | ||
OutputBaseFilename=mysetup | ||
Compression=lzma | ||
SolidCompression=yes | ||
WizardStyle=modern | ||
|
||
; Run in non administrative install mode (install for current user only.) | ||
PrivilegesRequired=lowest | ||
|
||
SetupIconFile="C:\Users\Ali\Desktop\TransVisio\images\images\icon.ico" | ||
|
||
; Used to display version in installer properties | ||
VersionInfoVersion={#MyAppVersion} | ||
UninstallDisplayIcon="C:\Users\Ali\Desktop\TransVisio\images\images\icon.ico" | ||
AppPublisher=aalramadan | ||
|
||
|
||
[Languages] | ||
Name: "english"; MessagesFile: "compiler:Default.isl" | ||
|
||
[Tasks] | ||
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked | ||
|
||
[Files] | ||
Source: "C:\Users\Ali\Desktop\TransVisio\dist\main\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion | ||
Source: "C:\Users\Ali\Desktop\TransVisio\dist\main\_internal\*"; DestDir: "{app}\_internal"; Flags: ignoreversion recursesubdirs createallsubdirs | ||
; NOTE: Don't use "Flags: ignoreversion" on any shared system files | ||
|
||
[Registry] | ||
Root: HKA; Subkey: "Software\Classes\{#MyAppAssocExt}\OpenWithProgids"; ValueType: string; ValueName: "{#MyAppAssocKey}"; ValueData: ""; Flags: uninsdeletevalue | ||
Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}"; ValueType: string; ValueName: ""; ValueData: "{#MyAppAssocName}"; Flags: uninsdeletekey | ||
Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#MyAppExeName},0" | ||
Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"" ""%1""" | ||
Root: HKA; Subkey: "Software\Classes\Applications\{#MyAppExeName}\SupportedTypes"; ValueType: string; ValueName: ".myp"; ValueData: "" | ||
|
||
[Icons] | ||
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}" | ||
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon | ||
|
||
[Run] | ||
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent runasoriginaluser | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
Build (Windows): | ||
pyinstaller --windowed --hidden-import=tiktoken_ext.openai_public --hidden-import=tiktoken_ext --icon="C:\Users\Ali\Desktop\TransVisio\images\images\icon.ico" main.py | ||
|
||
Build (Mac OS): | ||
pyinstaller --onefile --windowed --hidden-import=tiktoken_ext.openai_public --hidden-import=tiktoken_ext --icon="/Users/Ali/Desktop/TransVisio/images/images/icon.icns" main.py | ||
|
||
|
||
|
||
* Use for debugging --> --console instead of --windowed | ||
################################################################################# | ||
Python packages used (Windows): | ||
absl-py 2.1.0 | ||
altgraph 0.17.4 | ||
annotated-types 0.7.0 | ||
anyio 4.4.0 | ||
ass 0.5.4 | ||
audio-extract 0.6.0 | ||
cachetools 5.3.3 | ||
certifi 2024.6.2 | ||
charset-normalizer 3.3.2 | ||
click 8.1.7 | ||
colorama 0.4.6 | ||
contourpy 1.2.1 | ||
cycler 0.12.1 | ||
decorator 4.4.2 | ||
distro 1.9.0 | ||
et-xmlfile 1.1.0 | ||
ffmpeg-python 0.2.0 | ||
filelock 3.15.4 | ||
fonttools 4.53.0 | ||
fsspec 2024.6.1 | ||
future 1.0.0 | ||
google-ai-generativelanguage 0.6.5 | ||
google-api-core 2.19.0 | ||
google-api-python-client 2.134.0 | ||
google-auth 2.30.0 | ||
google-auth-httplib2 0.2.0 | ||
google-generativeai 0.7.0 | ||
googleapis-common-protos 1.63.1 | ||
grpcio 1.64.1 | ||
grpcio-status 1.62.2 | ||
h11 0.14.0 | ||
httpcore 1.0.5 | ||
httplib2 0.22.0 | ||
httpx 0.27.0 | ||
idna 3.7 | ||
imageio 2.34.2 | ||
imageio-ffmpeg 0.4.8 | ||
intel-openmp 2021.4.0 | ||
Jinja2 3.1.4 | ||
joblib 1.4.2 | ||
kiwisolver 1.4.5 | ||
llvmlite 0.43.0 | ||
Markdown 3.6 | ||
MarkupSafe 2.1.5 | ||
matplotlib 3.9.0 | ||
mkl 2021.4.0 | ||
more-itertools 10.3.0 | ||
mpmath 1.3.0 | ||
mutagen 1.46.0 | ||
networkx 3.3 | ||
nltk 3.8.1 | ||
numba 0.60.0 | ||
numpy 1.26.4 | ||
openai 1.35.3 | ||
openai-whisper 20231117 | ||
openpyxl 3.1.5 | ||
packaging 24.1 | ||
pandas 2.2.2 | ||
pefile 2023.2.7 | ||
pillow 10.3.0 | ||
pip 24.1.1 | ||
proglog 0.1.10 | ||
proto-plus 1.24.0 | ||
protobuf 4.25.3 | ||
pyasn1 0.6.0 | ||
pyasn1_modules 0.4.0 | ||
pydantic 2.7.4 | ||
pydantic_core 2.18.4 | ||
pyinstaller 6.8.0 | ||
pyinstaller-hooks-contrib 2024.7 | ||
pyparsing 3.1.2 | ||
PySide6 6.7.2 | ||
PySide6_Addons 6.7.2 | ||
PySide6_Essentials 6.7.2 | ||
python-dateutil 2.9.0.post0 | ||
pytz 2024.1 | ||
pywin32-ctypes 0.2.2 | ||
qasync 0.27.1 | ||
regex 2024.5.15 | ||
requests 2.32.3 | ||
rsa 4.9 | ||
scikit-learn 1.5.0 | ||
scipy 1.13.1 | ||
setuptools 70.1.1 | ||
shiboken6 6.7.2 | ||
six 1.16.0 | ||
sniffio 1.3.1 | ||
srt 3.5.3 | ||
sympy 1.12.1 | ||
tbb 2021.13.0 | ||
tensorboard-data-server 0.7.2 | ||
threadpoolctl 3.5.0 | ||
tiktoken 0.7.0 | ||
torch 2.3.1 | ||
tqdm 4.66.4 | ||
typing_extensions 4.12.2 | ||
tzdata 2024.1 | ||
uritemplate 4.1.1 | ||
urllib3 2.2.2 | ||
Werkzeug 3.0.3 | ||
xlrd 2.0.1 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
from ui_main import Ui_MainWindow | ||
from PySide6.QtWidgets import QApplication, QMainWindow | ||
from PySide6.QtGui import QIcon | ||
from qasync import QEventLoop | ||
import ui_functions | ||
import asyncio | ||
|
||
class MainWindow(QMainWindow, Ui_MainWindow): | ||
def __init__(self): | ||
super().__init__() | ||
|
||
self.loop = loop or asyncio.get_event_loop() | ||
|
||
self.setupUi(self) # Initializes ui_main.py | ||
|
||
# .connect can call a function, but can't pass argument to it | ||
# so, we use a parameterless lambda tha wraps a call with argument | ||
# and then .connect ends calling the parameterless lambda | ||
self.btn_open.clicked.connect(lambda: ui_functions.load_template_file(self)) | ||
self.btn_save.clicked.connect(lambda: ui_functions.save_template_file(self)) | ||
self.btn_next.clicked.connect(lambda: ui_functions.check_inputs(self)) | ||
self.btn_start.clicked.connect(lambda: ui_functions.communicate_with_api(self)) | ||
self.btn_back.clicked.connect(lambda: ui_functions.button_click(self, self.btn_back)) | ||
self.btn_settings.clicked.connect(lambda: ui_functions.expand_settings(self)) | ||
self.data_table.itemSelectionChanged.connect(lambda: ui_functions.items_selected(self)) | ||
self.btn_delete_row.clicked.connect(lambda: ui_functions.delete_row(self)) | ||
self.btn_info.clicked.connect(lambda: ui_functions.expand_about(self)) | ||
self.btn_reverse.clicked.connect(lambda: ui_functions.change_text_direction(self)) | ||
self.chk_box_dark.clicked.connect(lambda: ui_functions.theme_switch(self, self.chk_box_dark)) | ||
self.chk_box_light.clicked.connect(lambda: ui_functions.theme_switch(self, self.chk_box_light)) | ||
self.temp_slider.valueChanged.connect(lambda: ui_functions.temp_slider_changed(self)) | ||
self.combo_model.currentIndexChanged.connect(lambda: ui_functions.reset_temp_slider(self)) | ||
|
||
if __name__ == "__main__": | ||
app = QApplication() | ||
|
||
loop = QEventLoop(app) | ||
asyncio.set_event_loop(loop) | ||
|
||
window = MainWindow() | ||
window.show() | ||
|
||
with loop: | ||
loop.run_forever() |
Oops, something went wrong.