kepinsam commited on
Commit
9adc297
1 Parent(s): 21884e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ import streamlit as st
20
 
21
  API_URL = "https://api-inference.huggingface.co/models/kepinsam/ind-to-bbc-nmt-v5"
22
  # headers = {"Authorization": f"Bearer {API_TOKEN}"}
23
- headers = {"Authorization": f"Bearer {st.secrets["API_TOKEN"]}"}
24
 
25
  def query(payload):
26
  response = requests.post(API_URL, headers=headers, json=payload)
 
20
 
21
  API_URL = "https://api-inference.huggingface.co/models/kepinsam/ind-to-bbc-nmt-v5"
22
  # headers = {"Authorization": f"Bearer {API_TOKEN}"}
23
+ headers = {"Authorization": f"Bearer {st.secrets['API_TOKEN']}"}
24
 
25
  def query(payload):
26
  response = requests.post(API_URL, headers=headers, json=payload)