mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2026-03-23 18:07:51 -04:00
Ignore pytorch complaints
This commit is contained in:
parent
26faf7f8f3
commit
52549d1212
@ -5,6 +5,7 @@ import re
|
||||
import tempfile
|
||||
import uuid
|
||||
import sys
|
||||
import warnings
|
||||
from datetime import datetime
|
||||
from functools import wraps
|
||||
from html import unescape
|
||||
@ -37,6 +38,9 @@ from libretranslate.locales import (
|
||||
from .api_keys import Database, RemoteDatabase
|
||||
from .suggestions import Database as SuggestionsDatabase
|
||||
|
||||
# Ignore pytorch complaints
|
||||
warnings.simplefilter(action='ignore', category=FutureWarning)
|
||||
|
||||
# Rough map of emoji characters
|
||||
emojis = {e: True for e in \
|
||||
[ord(' ')] + # Spaces
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user