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 lines23242526262728292930313222 unmodified lines global _gliner_model if _gliner_model is not None: return logger.info("Loading GLiNER: temsa/eurocivic-gliner2-onnx-cpu") logger.info("Loading GLiNER: fastino/gliner2-base-v1") from gliner import GLiNER
_gliner_model = GLiNER.from_pretrained("temsa/eurocivic-gliner2-onnx-cpu") _gliner_model = GLiNER.from_pretrained("fastino/gliner2-base-v1") logger.info("GLiNER loaded")
2 unmodified lines3456672 unmodified linessentence-transformers>=5.4.0gliner>=0.3.0pydantic>=2.13.0onnxruntime>=1.20.0torch>=2.4.0
app.py+2-2
requirements.txt+2-1