import os os.system("hub install deoldify==1.0.1") import gradio as gr import paddlehub as hub from pathlib import Path model = hub.Module(name='deoldify') def inference(image): model.predict(image.name) return './output/DeOldify/'+Path(image.name).stem+".png" title = "DeOldify" description = "DeOldify的Gradio示例. 使用它, 只需要上传你的照片, 或者点击一张示例图片加载." article = r"""
---