import requests import streamlit as st API_URL = "https://api-inference.huggingface.co/models/kepinsam/ind-to-bbc-nmt-v5" # headers = {"Authorization": f"Bearer {API_TOKEN}"} headers = {"Authorization": f"Bearer {st.secrets['API_TOKEN']}"} def query(payload): response = requests.post(API_URL, headers=headers, json=payload) return response.json() output = query({ "inputs": "", })