Spaces:
Sleeping
Sleeping
Commit
·
7ce4bd5
1
Parent(s):
cda4ade
changed model loading location
Browse files
app.py
CHANGED
|
@@ -21,10 +21,10 @@ def load_model():
|
|
| 21 |
return reader
|
| 22 |
|
| 23 |
|
| 24 |
-
|
| 25 |
|
| 26 |
-
reader = load_model() #load model
|
| 27 |
|
|
|
|
| 28 |
|
| 29 |
input_image = Image.open(image) #read image
|
| 30 |
st.image(input_image) #display image
|
|
|
|
| 21 |
return reader
|
| 22 |
|
| 23 |
|
| 24 |
+
reader = load_model() #load model
|
| 25 |
|
|
|
|
| 26 |
|
| 27 |
+
if image is not None:
|
| 28 |
|
| 29 |
input_image = Image.open(image) #read image
|
| 30 |
st.image(input_image) #display image
|