Spaces:
Runtime error
Runtime error
JulianHame
commited on
Commit
•
0e2eada
1
Parent(s):
e7419d5
Update app.py
Browse files
app.py
CHANGED
@@ -36,9 +36,9 @@ st.write("Your Image")
|
|
36 |
st.write("----------------------------------------")
|
37 |
st.write("Filename: " +image_names[query_image])
|
38 |
st.write("Person: " +person_names[query_image])
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
|
43 |
# Turn feature vectors of dictionary into a 2D list that can be fed into NN algorithm
|
44 |
feature_list = list(feature_dict.values())
|
|
|
36 |
st.write("----------------------------------------")
|
37 |
st.write("Filename: " +image_names[query_image])
|
38 |
st.write("Person: " +person_names[query_image])
|
39 |
+
import matplotlib.pyplot as plt
|
40 |
+
import matplotlib.image as mpimg
|
41 |
+
plt.imshow(mpimg.imread(filenames[query_image]))
|
42 |
|
43 |
# Turn feature vectors of dictionary into a 2D list that can be fed into NN algorithm
|
44 |
feature_list = list(feature_dict.values())
|