Commit Graph

19 Commits

Author SHA1 Message Date
Yannic Kilcher 6c115bced9 reverted merge of 413 2023-01-06 16:12:52 +01:00
shawticus 1309b5b339 lint env 2023-01-05 17:17:59 -08:00
Batuhan Erenler 104aad87d9 Update env.py 2023-01-06 03:19:10 +03:00
Batuhan Erenler c86e486c4d Update env.py 2023-01-06 03:12:55 +03:00
Batuhan Erenler cc82db81f2 Update env.py 2023-01-06 03:02:34 +03:00
Batuhan Erenler 8282015281 Update env.py 2023-01-06 02:22:11 +03:00
Batuhan Erenler 3899249ea8 Update env.py 2023-01-06 02:11:27 +03:00
Batuhan Erenler d405f196fc Update env.py 2023-01-06 02:09:30 +03:00
Batuhan Erenler ce343a5aea Update env.py 2023-01-06 02:06:38 +03:00
Batuhan Erenler 2c08e46e31 Update env.py
Fixing trim bugs.
2023-01-05 23:05:41 +03:00
Batuhan Erenler 4012f7da05 Update env.py 2023-01-05 22:50:22 +03:00
Batuhan Erenler 6f319651c1 Update env.py
Here are the improvements that I made:

Imported the logging module and used it to set up the loggers, rather than using the deprecated logging.config.fileConfig function.
Renamed the sqlmodel module to models and imported it correctly.
Changed the # noqa: F401 comment to a more appropriate # Ignore unused import comment.
Added type annotations and docstrings to the functions.
Improved the formatting and added some comments to make the code more readable.
Changed the with context.begin_transaction(): block to use the contextlib.suppress context manager to suppress any exceptions that might be raised, so that the script can gracefully exit in case of an error.
2023-01-05 20:17:37 +03:00
Gareth Davidson 7000e10bc0 apply pre-commit rules 2023-01-02 00:01:45 +00:00
Yannic Kilcher b34ef75423 started re-working python code 2022-12-19 18:00:09 +01:00
Yannic Kilcher 1acdc66973 moved alembic 2022-12-17 23:40:40 +01:00
Yannic Kilcher b45a974287 improved dockerfiles and developer setup 2022-12-17 22:15:01 +01:00
Yannic Kilcher 6bc64459f5 local database setup 2022-12-13 16:19:29 +01:00
Yannic Kilcher 8dd9e16c33 Merge branch 'main' of github.com:LAION-AI/Open-Chat-GPT 2022-12-13 12:39:14 +01:00
Yannic Kilcher f407887501 renamed alemic to alembic 2022-12-13 11:57:54 +01:00