Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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[
|
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)
|