mirror of
https://github.com/neuml/txtai.git
synced 2026-10-12 02:19:52 +00:00
Update test
This commit is contained in:
@@ -104,7 +104,7 @@ class Textractor(Segmentation):
|
||||
|
||||
# Safe open validation
|
||||
if not self.safecheck(path):
|
||||
raise IOError(f"Safeopen URL validation failed: {path}")
|
||||
raise IOError(f"Safeopen URL validation failed: path={os.path.realpath(path)}, safeopen={self.safeopen}")
|
||||
|
||||
# Consider local files and HTTP urls valid
|
||||
return (path if exists or urlparse(path).scheme in ("http", "https") else None, exists)
|
||||
|
||||
@@ -58,6 +58,7 @@ tabular:
|
||||
|
||||
# Text extraction
|
||||
textractor:
|
||||
safeopen: /tmp/txtai
|
||||
|
||||
# Text to speech
|
||||
texttospeech:
|
||||
|
||||
Reference in New Issue
Block a user