Fix start bug: TypeError: Blocks.launch() got an unexpected keyword argument 'show_api'
Author: oskycarCreated Aug 23, 2026Updated Aug 23, 2026
reason: 项目依赖写的是 gradio>=4.43.0,没有上限,因此新环境可能安装到 Gradio 6;而 show_api 在 Gradio 6 已被 footer_links 替代。为了 同时兼容旧版和新版,我会让启动代码按当前 Gradio 支持的参数自动选择。
change code like this:
Source: Zeyi-Lin/HivisionIDPhotos