Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
import gradio as gr
|
2 |
import openai
|
3 |
-
import
|
4 |
|
5 |
# Retrieve the API key from the Hugging Face secret
|
6 |
-
api_key =
|
7 |
-
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=[])
|