kumarabd1996 commited on
Commit
d7d382b
·
verified ·
1 Parent(s): 930838a

Add Serving section (HTTP image)

Browse files
Files changed (1) hide show
  1. README.md +14 -0
README.md CHANGED
@@ -68,6 +68,20 @@ Earlier request: What are my biggest categories?
68
  New request: Continue the bulk update
69
  ```
70
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
  ## Training
72
 
73
  - **Base**: `convaiinnovations/laya` (English checkpoint; ModernBERT-large + decision head), Apache-2.0.
 
68
  New request: Continue the bulk update
69
  ```
70
 
71
+ ## Serving
72
+
73
+ A ready-made HTTP image (CPU, weights baked in) is published from
74
+ [realnighthawk/classifier](https://github.com/realnighthawk/classifier):
75
+
76
+ ```
77
+ docker run -p 8000:8000 ghcr.io/realnighthawk/classifier:latest
78
+ curl localhost:8000/classify -H 'content-type: application/json' \
79
+ -d '{"text":"book me a table for two at 8pm friday"}'
80
+ # {"label":"arrange","probabilities":{...}}
81
+ ```
82
+
83
+ `POST /classify` takes `{text, earlier?}`; `earlier` is the request being continued.
84
+
85
  ## Training
86
 
87
  - **Base**: `convaiinnovations/laya` (English checkpoint; ModernBERT-large + decision head), Apache-2.0.