Ahsen Khaliq commited on
Commit
f1c40cb
·
1 Parent(s): 27dab64

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -38,5 +38,4 @@ def inference(img):
38
  return Image.fromarray(np.uint8(out.get_image())).convert('RGB')
39
 
40
 
41
- iface = gr.Interface(inference, inputs="image", outputs="image")
42
- iface.launch()
 
38
  return Image.fromarray(np.uint8(out.get_image())).convert('RGB')
39
 
40
 
41
+ gr.Interface(inference, inputs=gr.inputs.Image(type="file"), outputs=gr.outputs.Image(type="pil")).launch()