Spaces:
Sleeping
Sleeping
Update functions.py
Browse files- functions.py +1 -1
functions.py
CHANGED
@@ -16,7 +16,7 @@ from streamlit import secrets
|
|
16 |
GITHUB_API = "https://api.github.com"
|
17 |
# No default TOKEN assignment here, we will handle it dynamically
|
18 |
# Replace with your actual OpenAI API key
|
19 |
-
openai.api_key = secrets['
|
20 |
# Function to update headers with a new token
|
21 |
def get_headers(updated_token=None):
|
22 |
# Use the provided token or fallback to the existing secret token
|
|
|
16 |
GITHUB_API = "https://api.github.com"
|
17 |
# No default TOKEN assignment here, we will handle it dynamically
|
18 |
# Replace with your actual OpenAI API key
|
19 |
+
openai.api_key = secrets['OPEN_AI_TOKEN']
|
20 |
# Function to update headers with a new token
|
21 |
def get_headers(updated_token=None):
|
22 |
# Use the provided token or fallback to the existing secret token
|