EurekaPotato commited on
Commit
d60f5f6
·
verified ·
1 Parent(s): 3177683

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. handler.py +9 -0
handler.py CHANGED
@@ -209,6 +209,15 @@ class TextRequest(BaseModel):
209
  events: Optional[List[Dict]] = None
210
 
211
 
 
 
 
 
 
 
 
 
 
212
  @app.get("/health")
213
  async def health():
214
  return {
 
209
  events: Optional[List[Dict]] = None
210
 
211
 
212
+ @app.get("/")
213
+ async def root():
214
+ return {
215
+ "service": "Text Feature Extraction API",
216
+ "version": "1.0.0",
217
+ "endpoints": ["/health", "/extract-text-features"],
218
+ }
219
+
220
+
221
  @app.get("/health")
222
  async def health():
223
  return {