ProfessorLeVesseur commited on
Commit
e4af4b8
·
verified ·
1 Parent(s): ee54df8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -146,7 +146,7 @@ st.subheader('Image Alt Text Creator')
146
  huggingface_api_key = st.secrets["huggingface_api_key"]
147
 
148
  # Initialize the Hugging Face inference client
149
- client = InferenceClient(api_token=huggingface_api_key)
150
 
151
  # File uploader allows user to add their own image
152
  uploaded_file = st.file_uploader("Upload an image", type=["jpg", "png", "jpeg"])
 
146
  huggingface_api_key = st.secrets["huggingface_api_key"]
147
 
148
  # Initialize the Hugging Face inference client
149
+ client = InferenceClient(token=huggingface_api_key)
150
 
151
  # File uploader allows user to add their own image
152
  uploaded_file = st.file_uploader("Upload an image", type=["jpg", "png", "jpeg"])