kepinsam's picture
Update app.py
792efb8 verified
raw
history blame contribute delete
388 Bytes
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": "",
})