Spaces:
Sleeping
Sleeping
Commit
·
f10c908
1
Parent(s):
99200ee
fix:first commit on the ocr
Browse files- app/main.py +8 -0
app/main.py
CHANGED
@@ -29,6 +29,14 @@ app = FastAPI(
|
|
29 |
redoc_url="/redoc"
|
30 |
)
|
31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
@app.post("/process-pdf/")
|
33 |
async def process_pdf(file: UploadFile = File(...)):
|
34 |
with tempfile.NamedTemporaryFile(delete=False, suffix=".pdf") as tmp:
|
|
|
29 |
redoc_url="/redoc"
|
30 |
)
|
31 |
|
32 |
+
|
33 |
+
|
34 |
+
@app.get("/")
|
35 |
+
def root():
|
36 |
+
return {"status": "ok", "routes": [str(r.path) for r in app.routes]}
|
37 |
+
|
38 |
+
|
39 |
+
|
40 |
@app.post("/process-pdf/")
|
41 |
async def process_pdf(file: UploadFile = File(...)):
|
42 |
with tempfile.NamedTemporaryFile(delete=False, suffix=".pdf") as tmp:
|