Skip to content

Commit

Permalink
Merge pull request #13 from wwakabobik/0.2
Browse files Browse the repository at this point in the history
0.2 - fix testing
  • Loading branch information
wwakabobik authored Nov 2, 2023
2 parents 1dc3954 + ac44e75 commit c3c2085
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/image_generation/gpt_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from leonardo_api import Leonardo
from openai_python_api import DALLE

from examples.creds import oai_token, oai_organization
from examples.creds import oai_token, oai_organization, openweathermap_appid


def get_weather(city, units):
Expand All @@ -31,7 +31,7 @@ def get_weather(city, units):
:return: The weather for the given city.
"""
base_url = "http://api.openweathermap.org/data/2.5/weather"
params = {"q": city, "appid": "93171b03384f92ee3c55873452a49c7c", "units": units}
params = {"q": city, "appid": openweathermap_appid, "units": units}
response = requests.get(base_url, params=params, timeout=30)
data = response.json()
return data
Expand Down

0 comments on commit c3c2085

Please sign in to comment.