Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,8 +6,8 @@ from transformers import T5Tokenizer, T5ForConditionalGeneration
|
|
| 6 |
# Digi-Key API and credentials
|
| 7 |
TOKEN_URL = "https://api.digikey.com/v1/oauth2/token"
|
| 8 |
API_URL = "https://api.digikey.com/products/v4/search/keyword"
|
| 9 |
-
|
| 10 |
-
|
| 11 |
|
| 12 |
# Function to fetch access token
|
| 13 |
@st.cache_data(ttl=3500) # Cache the token for its lifespan (1 hour)
|
|
|
|
| 6 |
# Digi-Key API and credentials
|
| 7 |
TOKEN_URL = "https://api.digikey.com/v1/oauth2/token"
|
| 8 |
API_URL = "https://api.digikey.com/products/v4/search/keyword"
|
| 9 |
+
CLIENT_ID = "K9d4a2AaGwQcoAvdNDZVYEOB3sqL4bMg" # Replace with your Digi-Key Client ID
|
| 10 |
+
CLIENT_SECRET = "NxzuxY67eJssGDkA" # Replace with your Digi-Key Client Secret
|
| 11 |
|
| 12 |
# Function to fetch access token
|
| 13 |
@st.cache_data(ttl=3500) # Cache the token for its lifespan (1 hour)
|