Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ from dotenv import load_dotenv
|
|
| 8 |
load_dotenv()
|
| 9 |
|
| 10 |
# Initialize OpenAI client
|
| 11 |
-
openai.api_key = os.getenv("
|
| 12 |
|
| 13 |
# Define function to get current weather
|
| 14 |
def get_current_weather(location, unit='celsius'):
|
|
|
|
| 8 |
load_dotenv()
|
| 9 |
|
| 10 |
# Initialize OpenAI client
|
| 11 |
+
openai.api_key = os.getenv("MY_OPENAI_KEY")
|
| 12 |
|
| 13 |
# Define function to get current weather
|
| 14 |
def get_current_weather(location, unit='celsius'):
|