zhaoyingjun / chatbot

ChatGPT带火了聊天机器人,主流的趋势都调整到了GPT类模式,本项目也与时俱进,会在近期更新GPT类版本。基于本项目和自己的语料可以训练出自己想要的聊天机器人,用于智能客服、在线问答、闲聊等场景。
3.53k stars 1.02k forks source link

提示error calling function怎么办的 #168

Closed Ruoke321 closed 9 months ago

Ruoke321 commented 1 year ago

File "/www/wwwroot/test/execute.py", line 113, in predict inputs = tf.keras.preprocessing.sequence.pad_sequences([inputs],maxlen=max_length_inp,padding='post')ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (12,) + inhomogeneous part.摘取的一些报错,我在kaggle上tf2.1和py3.1训练的,运行也是采用一样的版本

shirubei commented 1 year ago

152

Ruoke321 commented 9 months ago

重新跑了一遍就没这个问题了,变成了另一个问题