yangheng commited on
Commit
e804549
·
verified ·
1 Parent(s): 695a69a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -32,7 +32,7 @@ from transformers import pipeline
32
 
33
  nlp = pipeline(
34
  "token-classification",
35
- model="your-username/deberta-v3-base-end2end-absa", # replace with your repo id
36
  aggregation_strategy="simple", # aggregates sub-tokens into word-level entities
37
  )
38
 
@@ -84,8 +84,8 @@ print(aspects)
84
  You can deploy a simple REST service using FastAPI:
85
 
86
  ```bash
87
- pip install -r dev/requirements-serving.txt
88
- python dev/serve_singlehead_api.py --model your-username/deberta-v3-base-end2end-absa --host 0.0.0.0 --port 8000
89
  ```
90
 
91
  Predict:
 
32
 
33
  nlp = pipeline(
34
  "token-classification",
35
+ model="yangheng/deberta-v3-base-end2end-absa", # replace with your repo id
36
  aggregation_strategy="simple", # aggregates sub-tokens into word-level entities
37
  )
38
 
 
84
  You can deploy a simple REST service using FastAPI:
85
 
86
  ```bash
87
+
88
+ python serve_singlehead_api.py --model yangheng/deberta-v3-base-end2end-absa --host 0.0.0.0 --port 8000
89
  ```
90
 
91
  Predict: