Spaces:
Running
Getting an error when trying to run the import
from gliner import GLiNER
Runtime error
3.10/site-packages/gliner/model.py", line 13, in
from gliner.modules.token_rep import TokenRepLayer
File "/usr/local/lib/python3.10/site-packages/gliner/modules/token_rep.py", line 4, in
from flair.data import Sentence
File "/usr/local/lib/python3.10/site-packages/flair/init.py", line 42, in
from . import ( # noqa: E402 import after setting device
File "/usr/local/lib/python3.10/site-packages/flair/models/init.py", line 1, in
from .clustering import ClusteringModel
File "/usr/local/lib/python3.10/site-packages/flair/models/clustering.py", line 14, in
from flair.embeddings import DocumentEmbeddings
File "/usr/local/lib/python3.10/site-packages/flair/embeddings/init.py", line 13, in
from .document import (
File "/usr/local/lib/python3.10/site-packages/flair/embeddings/document.py", line 16, in
from flair.embeddings.token import FlairEmbeddings, StackedEmbeddings, TokenEmbeddings
File "/usr/local/lib/python3.10/site-packages/flair/embeddings/token.py", line 10, in
import gensim
File "/usr/local/lib/python3.10/site-packages/gensim/init.py", line 11, in
from gensim import parsing, corpora, matutils, interfaces, models, similarities, utils # noqa:F401
File "/usr/local/lib/python3.10/site-packages/gensim/corpora/init.py", line 6, in
from .indexedcorpus import IndexedCorpus # noqa:F401 must appear before the other classes
File "/usr/local/lib/python3.10/site-packages/gensim/corpora/indexedcorpus.py", line 14, in
from gensim import interfaces, utils
File "/usr/local/lib/python3.10/site-packages/gensim/interfaces.py", line 19, in
from gensim import utils, matutils
File "/usr/local/lib/python3.10/site-packages/gensim/matutils.py", line 20, in
from scipy.linalg import get_blas_funcs, triu
ImportError: cannot import name 'triu' from 'scipy.linalg' (/usr/local/lib/python3.10/site-packages/scipy/linalg/init.py) any suggestions
try to install scipy version 1.12
Works, but another issue, now when I integrate the usng the src="Space" the HighlightText Output blows up with an error though it works when I run it directly in the gradio app, what do you think could be the cause?