Hrishikesh332 commited on
Commit
8f37fff
1 Parent(s): 827ca4c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -2
app.py CHANGED
@@ -1,3 +1,23 @@
1
- import gradio as gr
 
 
2
 
3
- gr.Interface.load("models/Hrishikesh332/autotrain-meme-classification-42897109437").launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ from transformers import pipeline
3
+ from PIL import Image
4
 
5
+ def load_image(img):
6
+ im=Image.open(img)
7
+ return im
8
+ size=20
9
+
10
+ st.markdown("<h1 style='text-align: center;'>Memeter 💬</h1>", unsafe_allow_html=True)
11
+ st.markdown("---")
12
+ with st.sidebar:
13
+ st.title("Memometer")
14
+ st.caption('''
15
+ Memeter is an application used for the classification of whether the images provided is meme or not meme
16
+ ''', unsafe_allow_html=False)
17
+
18
+ img = st.file_uploader("Choose a Image:")
19
+ if img is not None:
20
+ # To read file as bytes:
21
+ bytes_data = img.getvalue()
22
+ st.write(bytes_data)
23
+ st.write(img)