ariG23498's picture
ariG23498 HF staff
chore: adding the image to the text prompt
1f029d6
raw
history blame
396 Bytes
import utils
import streamlit as st
import tensorflow as tf
image_url = st.text_input(
label="URL of image",
value="https://dl.fbaipublicfiles.com/dino/img.png",
placeholder="https://your-favourite-image.png"
)
# Preprocess the same image but with normlization.
image, preprocessed_image = utils.load_image_from_url(
image_url,
model_type="dino"
)
st.image(image, caption="Original Image")