title: Swedish Entity Recognition | |
emoji: 🇸🇪 | |
colorFrom: blue | |
colorTo: yellow | |
sdk: gradio | |
sdk_version: 3.12.0 | |
python_version: 3.9.13 | |
app_file: app.py | |
pinned: false | |
license: openrail | |
models: | |
- KBLab/bert-base-swedish-cased-ner | |
# Swedish Entity Recognition | |
## Installing locally | |
Setup: | |
source env/bin/activate | |
pip3 install -r requirements.txt | |
Then run: | |
python3 app.py | |
and test your Gradio app on: http://127.0.0.1:7860/ | |
## REST API via Gradio’s “Use via API” feature (see page footer) | |
curl -X POST -H 'Content-type: application/json' --data '{ "data": ["Jag heter Tom och bor i Stockholm."] }' https://tomsoderlund-swedish-entity-recognition.hf.space/run/predict | |