Spaces:
Running on Zero
Running on Zero
Eros483 commited on
Switch GLiNER to fastino/gliner2-base-v1 (PyTorch/GPU), drop onnxruntime
Browse filesFiles changed (2)
- app.py+2-2
- requirements.txt+2-1
22 unmodified lines2324252627282930313222 unmodified linesglobal _gliner_modelif _gliner_model is not None:returnlogger.info("Loading GLiNER: temsa/eurocivic-gliner2-onnx-cpu")from gliner import GLiNER_gliner_model = GLiNER.from_pretrained("temsa/eurocivic-gliner2-onnx-cpu")logger.info("GLiNER loaded")22 unmodified lines2324252627282930313222 unmodified linesglobal _gliner_modelif _gliner_model is not None:returnlogger.info("Loading GLiNER: fastino/gliner2-base-v1")from gliner import GLiNER_gliner_model = GLiNER.from_pretrained("fastino/gliner2-base-v1")logger.info("GLiNER loaded")
2 unmodified lines34562 unmodified linessentence-transformers>=5.4.0gliner>=0.3.0pydantic>=2.13.0onnxruntime>=1.20.02 unmodified lines345672 unmodified linessentence-transformers>=5.4.0gliner>=0.3.0pydantic>=2.13.0torch>=2.4.0
app.py+2-2
requirements.txt+2-1