asrilmurdian commited on
Commit
e25f5ce
·
verified ·
1 Parent(s): fe915b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -81,9 +81,9 @@ with st.container():
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=["bart-large-cnn", "pegasus_indonesian_base-finetune"])
 
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=["bart-large-cnn", "pegasus_indonesian_base-finetune"])