EurekaPotato commited on
Commit
55ae7b3
·
verified ·
1 Parent(s): 55e88f4

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. handler.py +9 -0
handler.py CHANGED
@@ -235,6 +235,15 @@ app.add_middleware(
235
  extractor = AudioFeatureExtractorEndpoint()
236
 
237
 
 
 
 
 
 
 
 
 
 
238
  @app.get("/health")
239
  async def health():
240
  return {"status": "healthy", "vad_loaded": extractor.vad_model is not None}
 
235
  extractor = AudioFeatureExtractorEndpoint()
236
 
237
 
238
+ @app.get("/")
239
+ async def root():
240
+ return {
241
+ "service": "Audio Feature Extraction API",
242
+ "version": "1.0.0",
243
+ "endpoints": ["/health", "/extract-audio-features", "/extract-audio-features-base64"],
244
+ }
245
+
246
+
247
  @app.get("/health")
248
  async def health():
249
  return {"status": "healthy", "vad_loaded": extractor.vad_model is not None}