Spaces:
Runtime error
Runtime error
| 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") |