typesdigital commited on
Commit
dc60bd7
·
1 Parent(s): 77db2fa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -3,6 +3,9 @@ import openai
3
  import requests
4
  import datetime
5
 
 
 
 
6
  def get_weather_data(city):
7
  url = f"http://api.openweathermap.org/data/2.5/weather?q={city}&appid={weather_api_key}&units=metric"
8
  response = requests.get(url)
 
3
  import requests
4
  import datetime
5
 
6
+ openai.api_key = "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"
7
+ weather_api_key = "1aafc3163909c1493596da9340e00aee"
8
+
9
  def get_weather_data(city):
10
  url = f"http://api.openweathermap.org/data/2.5/weather?q={city}&appid={weather_api_key}&units=metric"
11
  response = requests.get(url)