Prajwal-r-k commited on
Commit
fdf551b
·
verified ·
1 Parent(s): 75d18e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -37,17 +37,17 @@ examples = [['demo/noisy.png', 'Denoising'], ['demo/blurry.jpg', 'Deblurring']]
37
 
38
  # Updated Gradio Interface
39
  iface = gr.Interface(
40
- fn=inference, # Updated function syntax
41
- inputs=[
42
- gr.Image(type="pil", label="Input Image"), # Replaced gr.inputs.Image
43
- gr.Radio(["Denoising", "Deblurring"], value="Denoising", label="Task") # Replaced gr.inputs.Radio
44
- ],
45
- outputs=gr.Image(type="file", label="Output Image"), # Replaced gr.outputs.Image
46
  title=title,
47
  description=description,
48
  article=article,
 
49
  examples=examples
50
  )
51
 
 
52
  # Launch interface
53
  iface.launch(debug=True)
 
37
 
38
  # Updated Gradio Interface
39
  iface = gr.Interface(
40
+ inference,
41
+ inputs=[gr.Image(type="pil", label="Input Image"),
42
+ gr.Radio(["Denoising", "Deblurring"], value="Denoising", label="Task")],
43
+ outputs=gr.Image(type="filepath", label="Output Image"),
 
 
44
  title=title,
45
  description=description,
46
  article=article,
47
+ enable_queue=True,
48
  examples=examples
49
  )
50
 
51
+
52
  # Launch interface
53
  iface.launch(debug=True)