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 Videos" description = "Gradio demo for DeOldify-Videos. This was developed as a team project, do refer our GitHub page for source code" article = "

Github Repo

Deoldify - Videos | Seasons of Code


WnCC, IIT BombayIndian Institute of Technology, BombayMentored by: Preet Shah

Co-Mentor: Yash Shah

Team: Shashwat, Aum, Atishay, Oshin

Gautham, Omkar, Chandramouli

 

" css_code = 'body{background-image:url("https://burningmanagementblog.files.wordpress.com/2020/03/image.jpg?w=529");}' thumbnail_img = "thumbnail.jpeg" examples=[['lunch.jpeg']] iface = gr.Interface(inference, inputs=gr.inputs.Image(type="file"), outputs=gr.outputs.Image(type="file"),examples=examples,enable_queue=True,title=title,article=article,description=description, thumbnail=thumbnail_img) iface.launch(debug=True)