Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import openai
|
|
3 |
import os
|
4 |
|
5 |
# Get OpenAI API key from environment
|
6 |
-
openai.api_key = os.getenv("
|
7 |
|
8 |
def ai_calculator(num1, num2, operation):
|
9 |
if not openai.api_key:
|
|
|
3 |
import os
|
4 |
|
5 |
# Get OpenAI API key from environment
|
6 |
+
openai.api_key = os.getenv("OPENAI_API_KEY")
|
7 |
|
8 |
def ai_calculator(num1, num2, operation):
|
9 |
if not openai.api_key:
|