Open 848244210 opened 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
应该是Runtime出问题了,你可以试一下reconnect runtime然后再执行这个单元格
我也出现这个问题,好像是代理地址不支持api使用,我切到别的地区就好了,另外gemini free 有请求限制每分钟15次,每天1500。 请求过多就会报错WARNING:tornado.access:429 POST
WARNING:tornado.access:429 POST
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':
TypeError: can only concatenate str (not "NoneType") to str