MaKTaiL / gemini-srt-translator

Python tool for translating subtitles using Google Gemini AI
https://pypi.org/project/gemini-srt-translator/
MIT License
8 stars 2 forks source link

Update main.py #4

Closed CevreMuhendisi closed 3 days ago

CevreMuhendisi commented 3 days ago

fix

MaKTaiL commented 3 days ago

Hi, I'm not sure what you are trying to fix here exactly. If this is about Gemini returning wrong indices and number of dialogs sometimes, I have a fix coming in a future update.

As I understood from your code you are re-sending the entire system instruction with every new request which is not ideal. I see that you have also added a max_attempts variable. I also have a workaround coming for that to avoid infinite loops.

CevreMuhendisi commented 3 days ago

Alright sir, I’m eagerly awaiting your solution