Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,6 +4,7 @@ import openai
|
|
| 4 |
|
| 5 |
# Access the API key from the environment variable
|
| 6 |
openai.api_key = os.getenv('OPENAI_API_KEY')
|
|
|
|
| 7 |
|
| 8 |
def openai_chatbot(message, history):
|
| 9 |
# Convert history format for OpenAI API
|
|
|
|
| 4 |
|
| 5 |
# Access the API key from the environment variable
|
| 6 |
openai.api_key = os.getenv('OPENAI_API_KEY')
|
| 7 |
+
print(openai.api_key)
|
| 8 |
|
| 9 |
def openai_chatbot(message, history):
|
| 10 |
# Convert history format for OpenAI API
|