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