Ayanaminn / N46Whisper

Whisper based Japanese subtitle generator
MIT License
1.54k stars 127 forks source link

使用Google Gemini AI文本翻译出现未知错误 #102

Open 848244210 opened 3 months ago

848244210 commented 3 months ago

0%| | 0/607 [00:02<?, ?it/s]未知错误,用户可以尝试查看报错信息并在Repository里提交issue Unknown Error, please check the error log and open an issue in the repository


TypeError Traceback (most recent call last) in <cell line: 97>() 95 t = SubtitleTranslator(sub_src=subname) 96 ---> 97 translation, , = t.translate_by_line() 98 99 if output_format == 'ass':

in translate_by_line(self) 81 for line in tqdm(sub_trans,total = total_lines): 82 line_trans = translate(prompt, target_language, line.text) ---> 83 line.text += (r'\N'+ line_trans) 84 print(line_trans) 85 self.translations.append(line_trans)

TypeError: can only concatenate str (not "NoneType") to str

CooperWang0912 commented 3 months ago

应该是Runtime出问题了,你可以试一下reconnect runtime然后再执行这个单元格

eddiehex commented 2 months ago

我也出现这个问题,好像是代理地址不支持api使用,我切到别的地区就好了,另外gemini free 有请求限制每分钟15次,每天1500。 请求过多就会报错WARNING:tornado.access:429 POST