ariG23498 commited on
Commit
e53b04f
1 Parent(s): a2ca503

chore: adding titles

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -4,6 +4,8 @@ from PIL import Image
4
  import streamlit as st
5
  import tensorflow as tf
6
 
 
 
7
  image_url = st.text_input(
8
  label="URL of image",
9
  value="https://dl.fbaipublicfiles.com/dino/img.png",
@@ -39,4 +41,5 @@ utils.plot(attentions=attentions, image=preprocessed_img_orig)
39
 
40
  # Show the attention maps
41
  image = Image.open("heat_map.png")
 
42
  st.image(image, caption="Attention Heat Maps")
 
4
  import streamlit as st
5
  import tensorflow as tf
6
 
7
+ # Inputs
8
+ st.title("Input your image")
9
  image_url = st.text_input(
10
  label="URL of image",
11
  value="https://dl.fbaipublicfiles.com/dino/img.png",
 
41
 
42
  # Show the attention maps
43
  image = Image.open("heat_map.png")
44
+ st.title("Attention Heat Maps")
45
  st.image(image, caption="Attention Heat Maps")