File size: 423 Bytes
27e2096
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
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"))