Excel Espina
commited on
Commit
·
499bbd1
1
Parent(s):
c2ab47b
init
Browse files
app.py
CHANGED
@@ -3,11 +3,8 @@ import gradio as gr
|
|
3 |
|
4 |
openai.api_key = os.getenv("OPENAI_KEY")
|
5 |
|
6 |
-
with open('prompt.txt') as f:
|
7 |
-
prompt = f.read()
|
8 |
-
|
9 |
messages = [
|
10 |
-
{"role": "system", "content":
|
11 |
]
|
12 |
|
13 |
with gr.Blocks() as demo:
|
|
|
3 |
|
4 |
openai.api_key = os.getenv("OPENAI_KEY")
|
5 |
|
|
|
|
|
|
|
6 |
messages = [
|
7 |
+
{"role": "system", "content": os.getenv("CHATBOT_ENGINE_PROMPT")},
|
8 |
]
|
9 |
|
10 |
with gr.Blocks() as demo:
|