Browse Source

Hide Triton warning on Windows

Triton doesnt work on Windows so hide the error
pull/11/head
pythongosssss 2 years ago committed by GitHub
parent
commit
0787299610
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      main.py

4
main.py

@ -7,6 +7,10 @@ import heapq
import traceback
import asyncio
if os.name == "nt":
import logging
logging.getLogger("xformers").addFilter(lambda record: 'A matching Triton is not available' not in record.getMessage())
try:
import aiohttp
from aiohttp import web

Loading…
Cancel
Save