InvokeAI/scripts/invokeai-web.py

22 lines
484 B
Python
Raw Normal View History

#!/usr/bin/env python
# Copyright (c) 2022 Kyle Schouviller (https://github.com/kyle0654)
2023-08-17 22:45:25 +00:00
import os
2023-05-12 14:13:49 +00:00
import logging
2023-07-27 14:54:01 +00:00
logging.getLogger("xformers").addFilter(lambda record: "A matching Triton is not available" not in record.getMessage())
2023-05-12 14:13:49 +00:00
2023-07-27 14:54:01 +00:00
def main():
# Change working directory to the repo root
os.chdir(os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from invokeai.app.api_app import invoke_api
2023-07-27 14:54:01 +00:00
invoke_api()
2023-07-27 14:54:01 +00:00
if __name__ == "__main__":
main()