Spaces:
Running
Running
Update app.py
Browse files
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")
|