Spaces:
Runtime error
Runtime error
Daniel Verdu
commited on
Commit
•
93b36f2
1
Parent(s):
89d1aea
first commit in hf_spaces
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
#importing the libraries
|
2 |
import os, sys, re
|
3 |
import streamlit as st
|
|
|
4 |
from PIL import Image
|
5 |
import cv2
|
6 |
import numpy as np
|
@@ -145,7 +146,7 @@ if uploaded_file is not None:
|
|
145 |
img_rgb = np.array(pil_img)
|
146 |
|
147 |
resized_img_rgb = resize_img(img_rgb, max_img_size)
|
148 |
-
resized_pil_img = Image.fromarray(resized_img_rgb)
|
149 |
|
150 |
title_message.markdown("**Processing your image, please wait** ⌛")
|
151 |
|
|
|
1 |
#importing the libraries
|
2 |
import os, sys, re
|
3 |
import streamlit as st
|
4 |
+
import PIL
|
5 |
from PIL import Image
|
6 |
import cv2
|
7 |
import numpy as np
|
|
|
146 |
img_rgb = np.array(pil_img)
|
147 |
|
148 |
resized_img_rgb = resize_img(img_rgb, max_img_size)
|
149 |
+
resized_pil_img = PIL.Image.fromarray(resized_img_rgb)
|
150 |
|
151 |
title_message.markdown("**Processing your image, please wait** ⌛")
|
152 |
|