Skip to content

Commit

Permalink
0.2 - fix testing
Browse files Browse the repository at this point in the history
  • Loading branch information
wwakabobik committed Oct 17, 2023
1 parent 47328fd commit b2b11f2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11.5"]
python-version: ["3.10", "3.11"]
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
6 changes: 4 additions & 2 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Copyright (c) 2023. All rights reserved.
Created: 25.08.2023
Last Modified: 16.09.2023
Last Modified: 17.10.2023
Description:
This file is init point for project-wide structure.
Expand All @@ -14,7 +14,9 @@
# Engines
from .openai_api.src.openai_api.chatgpt import ChatGPT # pylint: disable=unused-import
from .openai_api.src.openai_api.dalle import DALLE # pylint: disable=unused-import
from .leonardo_api import Leonardo, LeonardoAsync # pylint: disable=unused-import
from .leonardo_api.src.leonardo_api.leonardo_sync import Leonardo # pylint: disable=unused-import
from .leonardo_api.src.leonardo_api.leonardo_async import Leonardo as LeonardoAsync # pylint: disable=unused-import


# Utils
from .utils.tts import CustomTTS # pylint: disable=unused-import
Expand Down
5 changes: 3 additions & 2 deletions __main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Copyright (c) 2023. All rights reserved.
Created: 25.08.2023
Last Modified: 16.09.2023
Last Modified: 17.10.2023
Description:
This file is entry point for project-wide structure.
Expand All @@ -14,7 +14,8 @@
# Engines
from .openai_api.src.openai_api.chatgpt import ChatGPT # pylint: disable=unused-import
from .openai_api.src.openai_api.dalle import DALLE # pylint: disable=unused-import
from .leonardo_api import Leonardo, LeonardoAsync # pylint: disable=unused-import
from .leonardo_api.src.leonardo_api.leonardo_sync import Leonardo # pylint: disable=unused-import
from .leonardo_api.src.leonardo_api.leonardo_async import Leonardo as LeonardoAsync # pylint: disable=unused-import

# Utils
from .utils.tts import CustomTTS # pylint: disable=unused-import
Expand Down
2 changes: 1 addition & 1 deletion examples/image_generation/gpt_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def get_weather(city, units):
"""
base_url = "http://api.openweathermap.org/data/2.5/weather"
params = {"q": city, "appid": "93171b03384f92ee3c55873452a49c7c", "units": units}
response = requests.get(base_url, params=params)
response = requests.get(base_url, params=params, timeout=30)
data = response.json()
return data

Expand Down

0 comments on commit b2b11f2

Please sign in to comment.