mirror of
https://github.com/neuml/txtai.git
synced 2026-10-11 21:39:55 +00:00
Syntax update
This commit is contained in:
@@ -18,7 +18,7 @@ class Cluster:
|
||||
Aggregates multiple embeddings shards into a single logical embeddings instance.
|
||||
"""
|
||||
|
||||
# pylint: disable = W0231
|
||||
# pylint: disable=W0231
|
||||
def __init__(self, config=None):
|
||||
"""
|
||||
Creates a new Cluster.
|
||||
|
||||
@@ -26,7 +26,7 @@ class Embeddings:
|
||||
that have the same meaning, not necessarily the same keywords.
|
||||
"""
|
||||
|
||||
# pylint: disable = W0231
|
||||
# pylint: disable=W0231
|
||||
def __init__(self, config=None, models=None, **kwargs):
|
||||
"""
|
||||
Creates a new embeddings index. Embeddings indexes are thread-safe for read operations but writes must be synchronized.
|
||||
|
||||
@@ -13,7 +13,7 @@ from fastapi.testclient import TestClient
|
||||
|
||||
from txtai.api import API, application
|
||||
|
||||
# pylint: disable = C0411
|
||||
# pylint: disable=C0411
|
||||
from utils import Utils
|
||||
|
||||
# Configuration for pipelines
|
||||
|
||||
@@ -20,7 +20,7 @@ from fastapi.testclient import TestClient
|
||||
from txtai.api import application
|
||||
from txtai.api.responses import JSONEncoder
|
||||
|
||||
# pylint: disable = C0411
|
||||
# pylint: disable=C0411
|
||||
from utils import Utils
|
||||
|
||||
# Configuration for image storage
|
||||
|
||||
@@ -12,7 +12,7 @@ from fastapi.testclient import TestClient
|
||||
|
||||
from txtai.api import application
|
||||
|
||||
# pylint: disable = C0411
|
||||
# pylint: disable=C0411
|
||||
from utils import Utils
|
||||
|
||||
# API Configuration
|
||||
|
||||
@@ -11,7 +11,7 @@ from zipfile import ZipFile, ZIP_DEFLATED
|
||||
|
||||
from txtai.archive import ArchiveFactory, Compress
|
||||
|
||||
# pylint: disable = C0411
|
||||
# pylint: disable=C0411
|
||||
from utils import Utils
|
||||
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ from PIL import Image
|
||||
|
||||
from txtai.embeddings import Embeddings
|
||||
|
||||
# pylint: disable = C0411
|
||||
# pylint: disable=C0411
|
||||
from utils import Utils
|
||||
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import soundfile as sf
|
||||
|
||||
from txtai.pipeline import AudioStream
|
||||
|
||||
# pylint: disable = C0411
|
||||
# pylint: disable=C0411
|
||||
from utils import Utils
|
||||
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import soundfile as sf
|
||||
|
||||
from txtai.pipeline import Microphone
|
||||
|
||||
# pylint: disable = C0411
|
||||
# pylint: disable=C0411
|
||||
from utils import Utils
|
||||
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ from scipy import signal
|
||||
|
||||
from txtai.pipeline import Transcription
|
||||
|
||||
# pylint: disable = C0411
|
||||
# pylint: disable=C0411
|
||||
from utils import Utils
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ import unittest
|
||||
|
||||
from txtai.pipeline import Tabular
|
||||
|
||||
# pylint: disable = C0411
|
||||
# pylint: disable=C0411
|
||||
from utils import Utils
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ import unittest
|
||||
|
||||
from txtai.pipeline import Textractor
|
||||
|
||||
# pylint: disable = C0411
|
||||
# pylint: disable=C0411
|
||||
from utils import Utils
|
||||
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ from PIL import Image
|
||||
|
||||
from txtai.pipeline import Caption
|
||||
|
||||
# pylint: disable = C0411
|
||||
# pylint: disable=C0411
|
||||
from utils import Utils
|
||||
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ from PIL import Image
|
||||
|
||||
from txtai.pipeline import ImageHash
|
||||
|
||||
# pylint: disable = C0411
|
||||
# pylint: disable=C0411
|
||||
from utils import Utils
|
||||
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import unittest
|
||||
|
||||
from txtai.pipeline import Objects
|
||||
|
||||
# pylint: disable = C0411
|
||||
# pylint: disable=C0411
|
||||
from utils import Utils
|
||||
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ from txtai.workflow import (
|
||||
WorkflowTask,
|
||||
)
|
||||
|
||||
# pylint: disable = C0411
|
||||
# pylint: disable=C0411
|
||||
from utils import Utils
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user