Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import streamlit as st
|
2 |
import tensorflow as tf
|
3 |
import numpy as np
|
4 |
-
from
|
5 |
import os
|
6 |
|
7 |
|
@@ -31,7 +31,7 @@ uploaded_file = st.file_uploader("Choose an image...", type=["jpg", "jpeg", "png
|
|
31 |
|
32 |
if uploaded_file is not None:
|
33 |
|
34 |
-
img =
|
35 |
st.image(img, caption="Uploaded Image.", use_column_width=True)
|
36 |
|
37 |
|
|
|
1 |
import streamlit as st
|
2 |
import tensorflow as tf
|
3 |
import numpy as np
|
4 |
+
from PIL import Image
|
5 |
import os
|
6 |
|
7 |
|
|
|
31 |
|
32 |
if uploaded_file is not None:
|
33 |
|
34 |
+
img = Image.open(uploaded_file)
|
35 |
st.image(img, caption="Uploaded Image.", use_column_width=True)
|
36 |
|
37 |
|