diff --git a/run.bat b/run.bat index f3c3b51d..9be8baee 100644 --- a/run.bat +++ b/run.bat @@ -1,3 +1,2 @@ @echo off - call %cd%\\venv\\scripts\\python.exe sp.py \ No newline at end of file diff --git a/runtest.bat b/runtest.bat new file mode 100644 index 00000000..7cb543a2 --- /dev/null +++ b/runtest.bat @@ -0,0 +1,9 @@ +@echo off + +set http_proxy=http://127.0.0.1:10809 +set https_proxy=http://127.0.0.1:10809 + +call %cd%\\venv\\scripts\\python.exe test.py + + +pause \ No newline at end of file diff --git a/videotrans/__init__.py b/videotrans/__init__.py index de5c33fc..9cb3effc 100644 --- a/videotrans/__init__.py +++ b/videotrans/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- -VERSION="v1.63" -VERSION_NUM=11063 \ No newline at end of file +VERSION="v1.64" +VERSION_NUM=11064 \ No newline at end of file diff --git a/videotrans/configure/config.py b/videotrans/configure/config.py index 9b2a1727..8b8ff420 100644 --- a/videotrans/configure/config.py +++ b/videotrans/configure/config.py @@ -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" diff --git a/videotrans/recognition/__init__.py b/videotrans/recognition/__init__.py index 6e12ef2a..572b1ef8 100644 --- a/videotrans/recognition/__init__.py +++ b/videotrans/recognition/__init__.py @@ -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): diff --git a/videotrans/task/check_update.py b/videotrans/task/check_update.py index fdb85f87..95775fda 100644 --- a/videotrans/task/check_update.py +++ b/videotrans/task/check_update.py @@ -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: