Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,6 +9,7 @@ theme = MonolithTheme()
|
|
| 9 |
|
| 10 |
# Initialize the OpenAI client once and use it in the openai_chatbot function
|
| 11 |
api_key = os.getenv("OPENAI_API_KEY")
|
|
|
|
| 12 |
client = openai.OpenAI(api_key=api_key)
|
| 13 |
|
| 14 |
def openai_chatbot(message, history=None):
|
|
|
|
| 9 |
|
| 10 |
# Initialize the OpenAI client once and use it in the openai_chatbot function
|
| 11 |
api_key = os.getenv("OPENAI_API_KEY")
|
| 12 |
+
print(api_key)
|
| 13 |
client = openai.OpenAI(api_key=api_key)
|
| 14 |
|
| 15 |
def openai_chatbot(message, history=None):
|