Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,15 +3,15 @@ import openai_secret_manager
|
|
3 |
|
4 |
# Function to get the secret values
|
5 |
def get_secrets():
|
6 |
-
|
7 |
-
instructor_prompt = openai_secret_manager.get_secret("
|
8 |
-
return
|
9 |
|
10 |
# Get the secrets
|
11 |
-
|
12 |
|
13 |
# Set your API key
|
14 |
-
api_key = secrets["
|
15 |
|
16 |
with gr.Blocks() as demo:
|
17 |
chat_history = gr.State(value=[])
|
|
|
3 |
|
4 |
# Function to get the secret values
|
5 |
def get_secrets():
|
6 |
+
inst_api_key = openai_secret_manager.get_secret("INSTRUCTOR_API_KEY")
|
7 |
+
instructor_prompt = openai_secret_manager.get_secret("INSTRUCTOR_PROMPT")
|
8 |
+
return inst_api_key, instructor_prompt
|
9 |
|
10 |
# Get the secrets
|
11 |
+
inst_api_key, instructor_prompt = get_secrets()
|
12 |
|
13 |
# Set your API key
|
14 |
+
api_key = secrets["INSTRUCTOR_API_KEY"]
|
15 |
|
16 |
with gr.Blocks() as demo:
|
17 |
chat_history = gr.State(value=[])
|