Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- 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 {
|