Xakiy commited on
Commit
a3508df
·
verified ·
1 Parent(s): 906f043

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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("openai")
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("OPENAI_API_KEY")
12
 
13
  # Define function to get current weather
14
  def get_current_weather(location, unit='celsius'):