lilyhof commited on
Commit
d41b583
·
1 Parent(s): ff52f7d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,10 +1,10 @@
1
  import gradio as gr
2
  import openai
3
- import huggingface_hub as hf
4
 
5
  # Retrieve the API key from the Hugging Face secret
6
- api_key = hf.secrets.get(INSTRUCTOR_API_KEY)
7
- instructor_prompt = hf.secrets.get(INSTRUCTOR_PROMPT)
8
 
9
  with gr.Blocks() as demo:
10
  chat_history = gr.State(value=[])
 
1
  import gradio as gr
2
  import openai
3
+ import os
4
 
5
  # Retrieve the API key from the Hugging Face secret
6
+ api_key = os.environ["INSTRUCTOR_API_KEY"]
7
+ instructor_prompt = os.environ["INSTRUCTOR_PROMPT"]
8
 
9
  with gr.Blocks() as demo:
10
  chat_history = gr.State(value=[])