Spaces:
Runtime error
Runtime error
Shrikrishna
commited on
Commit
•
27e355a
1
Parent(s):
4f1cce6
Update app.py
Browse files
app.py
CHANGED
@@ -89,11 +89,12 @@ if uploaded_image is not None:
|
|
89 |
predicted_actor = filenames[index_pos]
|
90 |
#st.header(predicted_actor)
|
91 |
# display
|
|
|
92 |
col1,col2 = st.columns(2)
|
93 |
|
94 |
with col1:
|
95 |
st.subheader('Your uploaded image')
|
96 |
-
st.image(
|
97 |
with col2:
|
98 |
st.subheader("Look Like: " + predicted_actor.split("/")[7])
|
99 |
-
st.image(filenames[index_pos],width=150)
|
|
|
89 |
predicted_actor = filenames[index_pos]
|
90 |
#st.header(predicted_actor)
|
91 |
# display
|
92 |
+
display_image_resized = display_image.resize((150,150)))
|
93 |
col1,col2 = st.columns(2)
|
94 |
|
95 |
with col1:
|
96 |
st.subheader('Your uploaded image')
|
97 |
+
st.image(display_image_resized,width=150, caption='Uploaded Image')
|
98 |
with col2:
|
99 |
st.subheader("Look Like: " + predicted_actor.split("/")[7])
|
100 |
+
st.image(filenames[index_pos],width=150, caption='Predicted Look Alike Image')
|