lilyhof commited on
Commit
b1ebbbc
·
1 Parent(s): 4e30cee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -3,15 +3,15 @@ import openai_secret_manager
3
 
4
  # Function to get the secret values
5
  def get_secrets():
6
- secrets = openai_secret_manager.get_secret("your_api_key_secret_name")
7
- instructor_prompt = openai_secret_manager.get_secret("your_instructor_prompt_secret_name")
8
- return secrets, instructor_prompt
9
 
10
  # Get the secrets
11
- secrets, instructor_prompt = get_secrets()
12
 
13
  # Set your API key
14
- api_key = secrets["api_key"]
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=[])