issues
search
PaddlePaddle
/
PaddleHub
Awesome pre-trained models toolkit based on PaddlePaddle. (400+ models including Image, Text, Audio, Video and Cross-Modal with Easy Inference & Serving)【安全加固,暂停交互,请耐心等待】
https://www.paddlepaddle.org.cn/hub
Apache License 2.0
12.75k
stars
2.07k
forks
source link
[Cherry-pick] Add gradio app support for module (#2132)
#2146
Closed
rainyfly
closed
2 years ago
rainyfly
commented
2 years ago
hub serving 新增gradio app的功能。 在模块的module.py中新增一个create_gradio_app方法,该方法返回gradio的Interface,即可以使得模块支持基于gradio的serving。 Example: hub启动jieba_paddle的服务: hub serving start -m jieba_paddle 既可以使用http://{ip}:8866/predict/jieba_paddle 访问原来的serving服务 又可以在浏览器中使用http://{ip}:8866/gradio/jieba_paddle 将可以访问该模块的gradio app