Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
|
|
3 |
import os
|
4 |
|
5 |
# openai API key
|
6 |
-
openai.api_key =
|
7 |
|
8 |
def predict(message, history):
|
9 |
history_openai_format = [{"role": "system", "content":os.getenv("PROMPT")}]
|
|
|
3 |
import os
|
4 |
|
5 |
# openai API key
|
6 |
+
openai.api_key = os.getenv("OPENAPI_KEY") # Replace with your key
|
7 |
|
8 |
def predict(message, history):
|
9 |
history_openai_format = [{"role": "system", "content":os.getenv("PROMPT")}]
|