Hammad712 commited on
Commit
3697fff
·
verified ·
1 Parent(s): 942611a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -53,7 +53,7 @@ def inference(image_path_or_url, learn):
53
  im_new.save("test.jpg", quality=95)
54
  img = open_image("test.jpg")
55
  p, img_hr, b = learn.predict(img)
56
- return img_hr
57
 
58
  # Streamlit application
59
  st.title("Image Inference with Fastai")
 
53
  im_new.save("test.jpg", quality=95)
54
  img = open_image("test.jpg")
55
  p, img_hr, b = learn.predict(img)
56
+ return img_hr.to_pil()
57
 
58
  # Streamlit application
59
  st.title("Image Inference with Fastai")