Spaces:
Runtime error
Runtime error
mwitiderrick
commited on
Commit
·
309be18
1
Parent(s):
1da40c3
Update app.py
Browse files
app.py
CHANGED
@@ -17,6 +17,7 @@ Here is sample code for a token classification pipeline:
|
|
17 |
```python
|
18 |
from deepsparse import Pipeline
|
19 |
pipeline = Pipeline.create(task="ner", model_path="zoo:nlp/token_classification/distilbert-none/pytorch/huggingface/conll2003/pruned80_quant-none-vnni")
|
|
|
20 |
inference = pipeline(text)
|
21 |
print(inference)
|
22 |
```
|
|
|
17 |
```python
|
18 |
from deepsparse import Pipeline
|
19 |
pipeline = Pipeline.create(task="ner", model_path="zoo:nlp/token_classification/distilbert-none/pytorch/huggingface/conll2003/pruned80_quant-none-vnni")
|
20 |
+
text = "Mary is flying from Nairobi to New York"
|
21 |
inference = pipeline(text)
|
22 |
print(inference)
|
23 |
```
|