Text2Video icon indicating copy to clipboard operation
Text2Video copied to clipboard

KeyError: 'result

Open azuredsky opened this issue 1 year ago • 2 comments

run :python pinyin_timestamping.py 正在为您查询合肥的天气情况。今天是2020年2月24日,合肥市今天多云,最低温度9摄氏度,最高温度15摄氏度,微风。 henan

Traceback (most recent call last): File "pinyin_timestamping.py", line 91, in for item in res['result']: KeyError: 'result

azuredsky avatar Sep 19 '22 10:09 azuredsky

您好,后来解决了吗? 我也遇到这个错误,把res打印出来,发现没有"result"这个key,res结果如下:

{'text': '正在 为 您 查询 合肥 的 天气 情况 今天 是 二 零 二 零 年 二月 二十四日 合肥市 今天 多云 最低 温度 九 摄氏度 最高 温度 十 五 摄氏度 微风'}

iamhere1 avatar Sep 30 '22 06:09 iamhere1

看上去这里有解决方案:https://github.com/sibozhang/Text2Video/issues/2

iamhere1 avatar Sep 30 '22 07:09 iamhere1