APJ23 commited on
Commit
23d7305
·
1 Parent(s): 3690df0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -9
app.py CHANGED
@@ -7,15 +7,6 @@ Original file is located at
7
  https://colab.research.google.com/drive/1H-R9L74rpYOoQJOnTLLbUpcNpd9Tty_D
8
  """
9
  import streamlit as st
10
- st.markdown("This is a image classification program, please enter the image that you would like to process.")
11
- st.markdown("Please keep in mind that the dataset is very small (around 100-2000 imgs only")
12
- path = ['Coretta_Scott_King','Saddam_Hussein','Augustin_Calleri','Peter_Hunt']
13
-
14
- select_path = st.selectbox('Which of the three photos would you like to process', options = path)
15
- st.write("You've select", select_path)
16
-
17
- # !wget http://vis-www.cs.umass.edu/lfw/lfw.tgz
18
- # !tar -xvf /content/lfw.tgz
19
  import tensorflow as tf
20
  from sklearn.datasets import load_sample_image
21
  import os
@@ -26,6 +17,16 @@ import numpy as np
26
  from PIL import Image
27
  from sklearn.neighbors import NearestNeighbors
28
 
 
 
 
 
 
 
 
 
 
 
29
  directory = '/content/lfw'
30
  model = resnet50.ResNet50(weights='imagenet', include_top=False, pooling='avg')
31
  feature_dict = {}
 
7
  https://colab.research.google.com/drive/1H-R9L74rpYOoQJOnTLLbUpcNpd9Tty_D
8
  """
9
  import streamlit as st
 
 
 
 
 
 
 
 
 
10
  import tensorflow as tf
11
  from sklearn.datasets import load_sample_image
12
  import os
 
17
  from PIL import Image
18
  from sklearn.neighbors import NearestNeighbors
19
 
20
+ st.markdown("This is a image classification program, please enter the image that you would like to process.")
21
+ st.markdown("Please keep in mind that the dataset is very small (around 100-2000 imgs only")
22
+ path = ['Coretta_Scott_King','Saddam_Hussein','Augustin_Calleri','Peter_Hunt']
23
+
24
+ select_path = st.selectbox('Which of the three photos would you like to process', options = path)
25
+ st.write("You've select", select_path)
26
+
27
+ # !wget http://vis-www.cs.umass.edu/lfw/lfw.tgz
28
+ # !tar -xvf /content/lfw.tgz
29
+
30
  directory = '/content/lfw'
31
  model = resnet50.ResNet50(weights='imagenet', include_top=False, pooling='avg')
32
  feature_dict = {}