asrilmurdian commited on
Commit
1627b45
·
verified ·
1 Parent(s): 6b74c30

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- # HF_TOKEN = os.environ.get("HF_TOKEN", None)
85
 
86
- headers = {"Authorization": f"Bearer {API_KEY}"}
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",])