shivambhosale commited on
Commit
769b12b
1 Parent(s): 44c54df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ import gradio as gr
6
  def getoutput(input_img):
7
  unet = UNet().to('cpu')
8
  unet = torch.load("unet_06_07_2022_17_13_42_256_256.pth", map_location='cpu').to('cpu')
9
- output_img = make_predictions(unet, input_img, threshold=0.5)
10
  return output_img
11
 
12
  demo = gr.Interface(getoutput, gr.Image(shape=(200, 200)), "image")
 
6
  def getoutput(input_img):
7
  unet = UNet().to('cpu')
8
  unet = torch.load("unet_06_07_2022_17_13_42_256_256.pth", map_location='cpu').to('cpu')
9
+ output_img = make_predictions(unet, input_img, threshold=0.05)
10
  return output_img
11
 
12
  demo = gr.Interface(getoutput, gr.Image(shape=(200, 200)), "image")