yuechen-yang commited on
Commit
7980257
1 Parent(s): 212ddd3

add pictures

Browse files
Files changed (2) hide show
  1. app.py +3 -0
  2. pic/vit-figure.jpg +0 -0
app.py CHANGED
@@ -31,6 +31,9 @@ def main():
31
  st.markdown("1. Split an image into a grid of sub-image patches")
32
  st.markdown("2. Embed each patch with a linear projection")
33
  st.markdown("3. Each embedded patch becomes a token, and the resulting sequence of embedded patches is the sequence you pass to the model.")
 
 
 
34
  st.markdown("I trained the model with 10 epochs, and I use Adam as the optimizer. The accuracy on the test set is 95%.")
35
  st.markdown("## Huggingface Space")
36
  st.markdown("The page here.")
 
31
  st.markdown("1. Split an image into a grid of sub-image patches")
32
  st.markdown("2. Embed each patch with a linear projection")
33
  st.markdown("3. Each embedded patch becomes a token, and the resulting sequence of embedded patches is the sequence you pass to the model.")
34
+ vit=Image.open("pic/vit-figure.jpg")
35
+ st.image(vit)
36
+
37
  st.markdown("I trained the model with 10 epochs, and I use Adam as the optimizer. The accuracy on the test set is 95%.")
38
  st.markdown("## Huggingface Space")
39
  st.markdown("The page here.")
pic/vit-figure.jpg ADDED