Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -722,6 +722,10 @@ async def analyze_legal_document(
|
|
722 |
print(f"Error analyzing document: {str(e)}")
|
723 |
raise HTTPException(status_code=500, detail=f"Error analyzing document: {str(e)}")
|
724 |
|
|
|
|
|
|
|
|
|
725 |
@app.post("/analyze_legal_video")
|
726 |
async def analyze_legal_video(
|
727 |
file: UploadFile = File(...),
|
|
|
722 |
print(f"Error analyzing document: {str(e)}")
|
723 |
raise HTTPException(status_code=500, detail=f"Error analyzing document: {str(e)}")
|
724 |
|
725 |
+
@app.get("/health")
|
726 |
+
def health_check():
|
727 |
+
return {"status": "ok", "message": "API is running"}
|
728 |
+
|
729 |
@app.post("/analyze_legal_video")
|
730 |
async def analyze_legal_video(
|
731 |
file: UploadFile = File(...),
|