Spaces:
Runtime error
Runtime error
Update app/main.py
Browse files- app/main.py +7 -0
app/main.py
CHANGED
|
@@ -12,6 +12,13 @@ app = FastAPI(
|
|
| 12 |
version="1.0.0"
|
| 13 |
)
|
| 14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
@app.post("/analyze", summary="Analyze PDF for Language Issues")
|
| 16 |
async def analyze_pdf_endpoint(file: UploadFile = File(...)):
|
| 17 |
"""
|
|
|
|
| 12 |
version="1.0.0"
|
| 13 |
)
|
| 14 |
|
| 15 |
+
@app.get("/", summary="Root Endpoint")
|
| 16 |
+
def read_root():
|
| 17 |
+
"""
|
| 18 |
+
Root endpoint to verify that the API is running.
|
| 19 |
+
"""
|
| 20 |
+
return {"message": "PDF Language Issue Analyzer API is running."}
|
| 21 |
+
|
| 22 |
@app.post("/analyze", summary="Analyze PDF for Language Issues")
|
| 23 |
async def analyze_pdf_endpoint(file: UploadFile = File(...)):
|
| 24 |
"""
|