SameerR007 commited on
Commit
290e20b
1 Parent(s): 068adb2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -3
app.py CHANGED
@@ -1,8 +1,20 @@
1
  import tensorflow as tf
2
  model=tf.keras.models.load_model('model.h5')
3
  import streamlit as st
4
- st.header("Adidas VS Nike Classification")
5
- categories=['Adidas','NIKE']
 
 
 
 
 
 
 
 
 
 
 
 
6
  from PIL import Image
7
  uploaded_image=st.file_uploader("Upload image",type=["jpg","jpeg","webp"])
8
  import numpy as np
@@ -17,4 +29,4 @@ if(uploaded_image!=None):
17
  img=img.reshape(1,150,150,3)
18
  pred=model.predict(img)
19
  print(pred[0][0])
20
- st.text(categories[round(pred[0][0])])
 
1
  import tensorflow as tf
2
  model=tf.keras.models.load_model('model.h5')
3
  import streamlit as st
4
+ st.header("Wonderful Wonders Classification")
5
+ st.markdown("This model takes in the input image of any wonder of the world and tries to classify it.")
6
+ categories=['Roman Colosseum',
7
+ 'Stonehenge',
8
+ 'Machu Pichu',
9
+ 'Chichen Itza',
10
+ 'Christ The Reedemer',
11
+ 'Eiffel Tower',
12
+ 'Taj Mahal',
13
+ 'Pyramids Of Giza',
14
+ 'Statue of Liberty',
15
+ 'Burj Khalifa',
16
+ 'Venezuela Angel Falls',
17
+ 'Great Wall of China']
18
  from PIL import Image
19
  uploaded_image=st.file_uploader("Upload image",type=["jpg","jpeg","webp"])
20
  import numpy as np
 
29
  img=img.reshape(1,150,150,3)
30
  pred=model.predict(img)
31
  print(pred[0][0])
32
+ st.text(categories[np.argmax(pred)])