import streamlit as st import requests from io import BytesIO from PIL import Image import os api_key = os.environ['API_KEY'] API_URL = "https://api-inference.huggingface.co/models/Hrishikesh332/autotrain-meme-classification-42897109437" headers = {"Authorization": f"Bearer {api_key}"} def query(data : bytes): # with open(filename, "rb") as f: # data = f.read() response = requests.post(API_URL, headers=headers, data=data) return response.json() st.markdown("