Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -80,10 +80,10 @@ with st.container():
|
|
80 |
|
81 |
with st.container():
|
82 |
# HuggingFace API KEY input
|
83 |
-
API_KEY = st.text_input("Enter your HuggingFace API key", type="password")
|
84 |
-
|
85 |
|
86 |
-
headers = {"Authorization": f"Bearer {
|
87 |
|
88 |
# Selectbox to choose between API URLs
|
89 |
selected_api_url = st.selectbox("Select Model", options=["asril-pegasus-model",])
|
|
|
80 |
|
81 |
with st.container():
|
82 |
# HuggingFace API KEY input
|
83 |
+
# API_KEY = st.text_input("Enter your HuggingFace API key", type="password")
|
84 |
+
HF_TOKEN = os.environ.get("HF_TOKEN", None)
|
85 |
|
86 |
+
headers = {"Authorization": f"Bearer {HF_TOKEN}"}
|
87 |
|
88 |
# Selectbox to choose between API URLs
|
89 |
selected_api_url = st.selectbox("Select Model", options=["asril-pegasus-model",])
|