Nawal20 commited on
Commit
5c4effa
·
verified ·
1 Parent(s): 80cfbdf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- ACCESS_TOKEN = "f8QUVTVNAHeyLrLzZ8iARnrYQI1p" # Replace with your valid access token
10
- CLIENT_ID = "K9d4a2AaGwQcoAvdNDZVYEOB3sqL4bMg" # Replace with your Digi-Key Client ID
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)