RealBasicVSR / app.py
akhaliq's picture
akhaliq HF Staff
Create app.py
27e2096
raw
history blame
423 Bytes
import os
os.system("git clone https://github.com/ckkelvinchan/RealBasicVSR.git")
os.system("RealBasicVSR")
import gradio
os.mkdir("test")
def inference(img):
img.save("test/test.png")
os.system("python inference_realbasicvsr.py configs/realbasicvsr_x4.py RealBasicVSR_x4.pth test/ results/demo_000")
return "results/demo_000/test.png"
gr.Interface(inference,gr.inputs.Image(type="pil"),gr.outputs.Image(type="file"))