Skip to content

Commit

Permalink
Merge pull request #41 from cyberofficial/dev-testing
Browse files Browse the repository at this point in the history
Minor Setup Fix
  • Loading branch information
cyberofficial authored Jul 28, 2023
2 parents 97dec6a + c8db772 commit b4d2b3a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
data_whisper
data_whisper-
out
livetranslation.bat
temp
Expand All @@ -11,3 +12,4 @@ dist
last_saved_timestamp.txt
last_checked_timestamp.txt
error_report.txt
livetranslation - Copy.bat
5 changes: 1 addition & 4 deletions requirements_static.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ mpmath==1.3.0
networkx==3.1
numba==0.56.4
numpy==1.23.5
openai-whisper @ git+https://github.com/openai/whisper.git@b5851c6c40e753606765ac45b85b298e3ae9e00d
openai-whisper
pefile==2023.2.7
Pillow==9.3.0
prettytable==3.6.0
Expand All @@ -42,9 +42,6 @@ smmap==5.0.0
SpeechRecognition==3.10.0
sympy==1.11.1
tiktoken==0.3.1
torch==2.0.0+cu118
torchaudio==2.0.1+cu118
torchvision==0.15.1+cu118
tqdm==4.65.0
typing_extensions==4.5.0
tzdata==2023.3
Expand Down
2 changes: 1 addition & 1 deletion setup.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if exist "data_whisper" (
set /p reinstall="Python environment already exists. Do you want to reinstall? [y/n]: "
if /i "%reinstall%"=="y" (
echo Deleting existing environment...
call data_whisper\Scripts\deactivate.bat
REM call data_whisper\Scripts\deactivate.bat :: Not Needed for now
rmdir /s /q data_whisper
) else (
echo Exiting...
Expand Down
5 changes: 1 addition & 4 deletions transcribe_audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@

def main():

version = "1.0.996"
version = "1.0.997"
ScriptCreator = "cyberofficial"
GitHubRepo = "https://github.com/cyberofficial/Real-Time-Synthalingua"
repo_owner = "cyberofficial"
Expand Down Expand Up @@ -783,9 +783,6 @@ def print_warning(old_ram_flag, new_ram_flag, needed_vram, detected_vram):
model = 'large'
audio_model = whisper.load_model(model, device=device)
print(f"Model was changed to large since {detected_language} was detected 5 times in a row.")
# Keeping sleep disabled for now will add a flag to enable it later to prevent spamming the API
# Just here as a reminder
# sleep(0.25)
except Exception as e:
if not isinstance(e, KeyboardInterrupt):
print(e)
Expand Down

0 comments on commit b4d2b3a

Please sign in to comment.