Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,8 +3,8 @@ 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(
|
| 7 |
-
instructor_prompt = hf.secrets.get(
|
| 8 |
|
| 9 |
with gr.Blocks() as demo:
|
| 10 |
chat_history = gr.State(value=[])
|
|
|
|
| 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=[])
|