Skip to content

Commit

Permalink
fix: bugs and update
Browse files Browse the repository at this point in the history
  • Loading branch information
jianchang512 committed Apr 29, 2024
1 parent b005f0b commit 5d31da3
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 6 deletions.
1 change: 0 additions & 1 deletion run.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
@echo off

call %cd%\\venv\\scripts\\python.exe sp.py
9 changes: 9 additions & 0 deletions runtest.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@echo off

set http_proxy=http:https://127.0.0.1:10809
set https_proxy=http:https://127.0.0.1:10809

call %cd%\\venv\\scripts\\python.exe test.py


pause
4 changes: 2 additions & 2 deletions videotrans/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-

VERSION="v1.63"
VERSION_NUM=11063
VERSION="v1.64"
VERSION_NUM=11064
4 changes: 3 additions & 1 deletion videotrans/configure/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ def parse_init():
"large-v3",
"distil-whisper-small.en",
"distil-whisper-medium.en",
"distil-whisper-large-v2"]
"distil-whisper-large-v2",
"distil-whisper-large-v3"
]

# 开始按钮状态
current_status = "stop"
Expand Down
2 changes: 1 addition & 1 deletion videotrans/recognition/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def all_recogn(*, detect_language=None, audio_file=None, cache_folder=None, mode
num_workers=config.settings['whisper_worker'],
cpu_threads=os.cpu_count() if int(config.settings['whisper_threads']) < 1 else int(
config.settings['whisper_threads']),
local_files_only=True)
local_files_only=False)
if config.current_status != 'ing' and config.box_recogn != 'ing':
return False
if not tools.vail_file(audio_file):
Expand Down
2 changes: 1 addition & 1 deletion videotrans/task/check_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self, parent=None):

def get(self):
try:
res=requests.get("https://pyvideotrans.com/version.json")
res=requests.get("https://pyvideotrans.com/version2.json")
if res.status_code==200:
d=res.json()
if d['version_num']>videotrans.VERSION_NUM:
Expand Down

0 comments on commit 5d31da3

Please sign in to comment.