This warning message is indicating that the style method in Gradio is now deprecated. Instead of using the style method, it is recommended to set the style arguments in the constructor of the Gradio interface.

For example, instead of doing:

gr.Interface(fn=my_function).style(...)

You should do:

gr.Interface(fn=my_function, style=...)

By setting the style arguments in the constructor, you can avoid the deprecation warning and ensure that your code is up-to-date with the latest Gradio version

GradioDeprecationWarning The style method is deprecated Please set these arguments in the constructor instead

原文地址: https://www.cveoy.top/t/topic/izna 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录