gradio 会话的问题:

gradio 会话的问题:
https://blog.csdn.net/weixin_41896770/article/details/130739147
总结会话的变量传递,
1. 需要用gr.state设置变量
2. 被传递的值,需要给函数传递进去. 比如 combine(value1), 同时btn.click(combine,[value1],[value1])也写好即可.

posted on 2023-09-12 17:21  张博的博客  阅读(59)  评论(0编辑  收藏  举报

导航