2024-09-23 22:27:17 发布
网友
我是这样做的:
dispatcher.utter_message(image='https://dvtb78sd925mn.cloudfront.net/wp-content/uploads/2018/10/15110630/exemplo-marketing-derelacionamento.png')
但是RasaX没有显示图像
记录在案(我猜你知道这些):这里的论坛帖子https://forum.rasa.com/t/return-image-from-actions-in-rasa-x/25643/6表明这是一个bug;错误在这里打开https://github.com/RasaHQ/rasa/issues/5388
我们可以在RASA-X中从自定义操作服务器返回一个图像。我使用了下面的代码从自定义操作服务器返回一个图像。在actions.py文件中, 使用下面的语句
dispatcher.utter_message(text="Test Image",image="http://localhost:7000/img/charts/TestImage.png") return []
RASA-X版本:“0.42.0”
RASA:“2.8.0”
记录在案(我猜你知道这些):这里的论坛帖子https://forum.rasa.com/t/return-image-from-actions-in-rasa-x/25643/6表明这是一个bug;错误在这里打开https://github.com/RasaHQ/rasa/issues/5388
我们可以在RASA-X中从自定义操作服务器返回一个图像。我使用了下面的代码从自定义操作服务器返回一个图像。在actions.py文件中, 使用下面的语句
RASA-X版本:“0.42.0”
RASA:“2.8.0”
相关问题 更多 >
编程相关推荐