Spaces:
Runtime error
Runtime error
import streamlit as st | |
from PIL import Image | |
def load_image(img): | |
im=Image.open(img) | |
return im | |
size=20 | |
st.markdown("<h1 style='text-align: center;'>Memeter π¬</h1>", unsafe_allow_html=True) | |
st.markdown("---") | |
with st.sidebar: | |
st.title("Memometer") | |
st.caption(''' | |
Memeter is an application used for the classification of whether the images provided is meme or not meme | |
''', unsafe_allow_html=False) | |
img = st.file_uploader("Choose a Image:") | |
if img is not None: | |
# To read file as bytes: | |
bytes_data = img.getvalue() | |
st.write(bytes_data) | |
st.write(img) |