Spaces:
Runtime error
Runtime error
Shrikrishna
commited on
Commit
•
12e508d
1
Parent(s):
5ac43f8
Update app.py
Browse files
app.py
CHANGED
@@ -186,15 +186,15 @@ if uploaded_image is not None:
|
|
186 |
with col7:
|
187 |
celeb = result[0]['class']
|
188 |
st.header("Predicted Image: ")
|
189 |
-
if celeb == "
|
190 |
#dhoni = cv2.imread("dhoni.jpg")
|
191 |
dhoni = Image.open("dhoni.jpg")
|
192 |
st.image(dhoni,width=150, caption='MS Dhoni')
|
193 |
-
elif celeb == "
|
194 |
#dravid = cv2.imread("rahul.jpg")
|
195 |
dravid = Image.open("rahul.jpg")
|
196 |
st.image(dravid,width=150, caption='Rahul Dravid')
|
197 |
-
elif celeb == "
|
198 |
#sachin = cv2.imread("sachin.jpg")
|
199 |
sachin = Image.open("sachin.jpg")
|
200 |
st.image(sachin,width=150, caption='Sachin Tendulkar')
|
|
|
186 |
with col7:
|
187 |
celeb = result[0]['class']
|
188 |
st.header("Predicted Image: ")
|
189 |
+
if celeb == "ms_dhoni":
|
190 |
#dhoni = cv2.imread("dhoni.jpg")
|
191 |
dhoni = Image.open("dhoni.jpg")
|
192 |
st.image(dhoni,width=150, caption='MS Dhoni')
|
193 |
+
elif celeb == "rahul_dravid":
|
194 |
#dravid = cv2.imread("rahul.jpg")
|
195 |
dravid = Image.open("rahul.jpg")
|
196 |
st.image(dravid,width=150, caption='Rahul Dravid')
|
197 |
+
elif celeb == "sachin_tendulkar":
|
198 |
#sachin = cv2.imread("sachin.jpg")
|
199 |
sachin = Image.open("sachin.jpg")
|
200 |
st.image(sachin,width=150, caption='Sachin Tendulkar')
|