#2092 TaskCfg(cache_folder=None, target_dir='c:/users/admin/videos/pyvideotrans/translate', remove_noise=False, is_separate=Fa

2402:800* Posted at: 7 hours ago 👁11

Trans Error:[Gemini AI] Runtime error: The model is overloaded. Please try again later.:
Traceback (most recent call last):
File "videotrans\translator\_base.py", line 78, in run
File "videotrans\translator\_base.py", line 137, in _run_srt
File "tenacity\__init__.py", line 338, in wrapped_f
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 421, in exc_check
tenacity.RetryError: RetryError[]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\job.py", line 184, in run
File "videotrans\task\_translate_srt.py", line 45, in trans
File "videotrans\translator\__init__.py", line 932, in run
File "videotrans\translator\_base.py", line 81, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_gemini.py", line 132, in _item_task
RuntimeError: The model is overloaded. Please try again later.

TaskCfg(cache_folder=None, target_dir='c:/users/admin/videos/pyvideotrans/translate', remove_noise=False, is_separate=False, detect_language=None, subtitle_language=None, source_language=None, target_language=None, source_language_code='Simplified Chinese', target_language_code='Vietnamese', source_sub='D:/bao chua/110.srt', target_sub='c:/users/admin/videos/pyvideotrans/translate/110.Vietnamese.srt', source_wav=None, source_wav_output=None, target_wav=None, target_wav_output=None, subtitles=None, novoice_mp4=None, noextname='110', shibie_audio=None, targetdir_mp4=None, instrument=None, vocal=None, back_audio=None, background_music=None, app_mode='biaozhun', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role=None, copysrt_rawvideo=False, clear_cache=False, translate_type=5, tts_type=None, recogn_type=None, model_name=None, split_type=0, voice_autorate=False, video_autorate=False, cuda=False, name='D:/bao chua/110.srt', basename='110.srt', ext='srt', dirname='D:/bao chua', shound_del_name=None, uuid='fe2e79f100', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=2, only_out_mp4=False)


=
system:Windows-10-10.0.26100-SP0
version:v3.90
frozen:True
language:en
root_dir:E:/pyvideo

1 Replies

The error indicates that the Gemini AI translation service is currently overloaded. This is a server-side issue from Google, not a problem with your local setup. To resolve this, you can try the following steps:

  1. Wait and Retry: The simplest solution is to wait a few minutes and try running the translation again. Server load can be temporary.
  2. Adjust Translation Settings (Recommended):

    • Go to the main menu: Tools -> Options -> Advanced Options.
    • In the "Subtitle Translation Adjustment" section, increase the value of "Pause after translation / seconds". Set it to 10 or higher. This gives the server more time between requests and reduces the chance of triggering an overload error.
  3. Reduce Batch Size:

    • In the same "Subtitle Translation Adjustment" section, reduce the "Number of subtitle lines per batch" to a smaller number (e.g., 5 or 3). Sending fewer lines at once puts less load on the API.
  4. Switch Translation Service (Temporary):

    • If the issue persists, consider temporarily switching to another translation service (e.g., Google Translate, DeepSeek, or OpenAI) in the main interface's translation settings.

If none of the above works, please provide the complete log file from the E:/pyvideo/logs/ directory for further analysis.

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Donate: https://ko-fi.com/jianchang512

Similar issues already exist

Trending Questions